Resources for learning how to design good API wrappers in ruby [closed]
since testing is one part of a good API wrapper I recommend this for a start on the topic.
Take a look at Instagram Ruby Client.
It should give you a fair idea on how to write modular third party API wrappers in Ruby.