Class: WemoDevice::SSDP::Response
- Inherits:
-
Object
- Object
- WemoDevice::SSDP::Response
- Defined in:
- lib/wemo_device/ssdp.rb
Instance Method Summary collapse
-
#initialize(host, port, payload) ⇒ Response
constructor
A new instance of Response.
- #location ⇒ Object
- #search_target ⇒ Object
- #unique_service_name ⇒ Object
Constructor Details
#initialize(host, port, payload) ⇒ Response
11 12 13 14 15 |
# File 'lib/wemo_device/ssdp.rb', line 11 def initialize(host, port, payload) @host = host @port = port @payload = payload end |
Instance Method Details
#location ⇒ Object
25 26 27 |
# File 'lib/wemo_device/ssdp.rb', line 25 def location http_response["location"] end |
#search_target ⇒ Object
17 18 19 |
# File 'lib/wemo_device/ssdp.rb', line 17 def search_target http_response["st"] end |
#unique_service_name ⇒ Object
21 22 23 |
# File 'lib/wemo_device/ssdp.rb', line 21 def unique_service_name http_response["usn"] end |