def get_resource(url, resource_class, params={})
      resource_class.from_hash(get(url, params), client: self)
    end
def get_resource(url, resource_class, params={})
      resource_class.from_hash(get(url, params), client: self)
    end
If an API endpoint returns a single resource, not an Array of resources,
 we want to use this.

 Returns an instance of `resource_class`.