Class: Net::PTTH::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/net/ptth/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



2
3
4
# File 'lib/net/ptth/response.rb', line 2

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



2
3
4
# File 'lib/net/ptth/response.rb', line 2

def headers
  @headers
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



2
3
4
# File 'lib/net/ptth/response.rb', line 2

def method
  @method
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



2
3
4
# File 'lib/net/ptth/response.rb', line 2

def status
  @status
end

Instance Method Details

#[](key) ⇒ Object



3
4
5
# File 'lib/net/ptth/response.rb', line 3

def [](key)
  headers[key]
end