Class: Net::NATPMP::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/net/natpmp/responses.rb

Overview

Response class

Direct Known Subclasses

ExternalAddressResponse, MappingResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

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_responseObject (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