module ActionTracker::HttpGateway
Protected Instance Methods
parse_response(response)
click to toggle source
# File lib/action_tracker/utils/http_gateway.rb, line 19 def parse_response(response) ActionTracker::CollectionProxy.new response, self.class.model_name end
processed_path(collection_name, params)
click to toggle source
# File lib/action_tracker/utils/http_gateway.rb, line 15 def processed_path(collection_name, params) [collection_name, params.to_query].reject(&:blank?).compact.join('?') end
request(path)
click to toggle source
# File lib/action_tracker/utils/http_gateway.rb, line 7 def request(path) Connection.new.get(path) end
response()
click to toggle source
# File lib/action_tracker/utils/http_gateway.rb, line 11 def response @response ||= Connection.new.get(@path) end