Class: Net::PTTH::Response
- Inherits:
-
Struct
- Object
- Struct
- Net::PTTH::Response
- Defined in:
- lib/net/ptth/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
2 3 4 |
# File 'lib/net/ptth/response.rb', line 2 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
2 3 4 |
# File 'lib/net/ptth/response.rb', line 2 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method
2 3 4 |
# File 'lib/net/ptth/response.rb', line 2 def method @method end |
#status ⇒ Object
Returns the value of attribute 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 |