lib/homeflow/api/request.rb in homeflow_api-0.17.13 vs lib/homeflow/api/request.rb in homeflow_api-0.17.14
- old
+ new
@@ -66,13 +66,14 @@
end
class << self
def run_for(request_specification)
r = Request.new(request_specification)
+ r = r.perform
if r.is_a? Hash
Response.new(r)
else
- Response.new_from_json(r.perform)
+ Response.new_from_json(r)
end
end
end
end