I'm writing an API wrapper in Ruby and not sure how to proceed. HTTParty
is very nice and takes care of everything for me, but on HTTParty::get
it returns an HTTParty::Response
object.
I want to know, is it better to:
- Let the user work with the
HTTParty::Response
object directly - Convert to a Hash somehow?
- Create an instance of a class that has attributes/fields as the keys in the Response object?