Module: Transport::Common::ClassMethods

Defined in:
lib/transport/common.rb

Instance Method Summary collapse

Instance Method Details

#request(http_method, url, options = { }) ⇒ Object



30
31
32
33
34
35
# File 'lib/transport/common.rb', line 30

def request(http_method, url, options = { })
  uri, request = self::RequestBuilder.build http_method, url, options
  transport = new uri, request, options
  transport.perform
  transport.response
end