class DoubleMap::Connection::HTTPartyAdapter
Public Class Methods
new(config)
click to toggle source
# File lib/doublemap_api/connection_adapters/httparty_adapter.rb, line 10 def initialize config self.class.base_uri config.base_uri # Write debug information to the configured output stream self.class.debug_output config.debug_output end
Public Instance Methods
get(endpoint, opts={})
click to toggle source
# File lib/doublemap_api/connection_adapters/httparty_adapter.rb, line 16 def get endpoint, opts={}, &block self.class.get(endpoint, opts, &block).parsed_response end
post(endpoint, opts={})
click to toggle source
# File lib/doublemap_api/connection_adapters/httparty_adapter.rb, line 20 def post endpoint, opts={}, &block self.class.post(endpoint, opts, &block).parsed_response end