lib/redd/api_client.rb in redd-0.8.0.pre.2 vs lib/redd/api_client.rb in redd-0.8.0
- old
+ new
@@ -64,10 +64,10 @@
@unmarshaller.unmarshal(object)
end
def model(verb, path, options = {})
# XXX: make unmarshal explicit in methods?
- unmarshal(request(verb, path, options).body)
+ unmarshal(send(verb, path, options).body)
end
# Makes a request, ensuring not to break the rate limit by sleeping.
# @see Client#request
def request(verb, path, raw: false, params: {}, **options)