Module: Transport::Common::InstanceMethods

Defined in:
lib/transport/common.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



19
20
21
# File 'lib/transport/common.rb', line 19

def options
  @options
end

#requestObject (readonly)

Returns the value of attribute request.



18
19
20
# File 'lib/transport/common.rb', line 18

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



20
21
22
# File 'lib/transport/common.rb', line 20

def response
  @response
end

#uriObject (readonly)

Returns the value of attribute uri.



17
18
19
# File 'lib/transport/common.rb', line 17

def uri
  @uri
end

Instance Method Details

#initialize(uri, request, options = { }) ⇒ Object



22
23
24
# File 'lib/transport/common.rb', line 22

def initialize(uri, request, options = { })
  @uri, @request, @options = uri, request, options
end