lib/homeflow/api/request.rb in homeflow_api-0.17.6 vs lib/homeflow/api/request.rb in homeflow_api-0.17.8

- old
+ new

@@ -38,18 +38,18 @@ log_line << "@request_specification:\n#{@request_specification.to_json}\n" Homeflow::API.configuration.logger.info(log_line.join("\n")) end if request_specification.is_a? Query - return (get(url, :query => query_params)).body + return (self.class.get(url, :query => query_params)).body elsif request_specification.is_a? ResourceIdentifier - return (get(url, :query => query_params)).body + return (self.class.get(url, :query => query_params)).body elsif request_specification.is_a? Delete - return (delete(url, :query => query_params)).body + return (self.class.delete(url, :query => query_params)).body elsif request_specification.is_a? Put - return (put(url, :query => query_params, :body => post_params)).body + return (self.class.put(url, :query => query_params, :body => post_params)).body elsif request_specification.is_a? Post - return (post(url, :query => query_params, :body => post_params)).body + return (self.class.post(url, :query => query_params, :body => post_params)).body end end def constant_params