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