Class: Net::NATPMP::Response
- Inherits:
-
Object
- Object
- Net::NATPMP::Response
- Defined in:
- lib/net/natpmp/responses.rb
Overview
Response class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
Instance Method Summary collapse
-
#initialize(response, _ = {}) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response, _ = {}) ⇒ Response
Returns a new instance of Response.
9 10 11 |
# File 'lib/net/natpmp/responses.rb', line 9 def initialize(response, _ = {}) @raw_response = response end |
Instance Attribute Details
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
7 8 9 |
# File 'lib/net/natpmp/responses.rb', line 7 def raw_response @raw_response end |