Class: SonyCameraRemote::Discovery::Response
- Inherits:
-
Object
- Object
- SonyCameraRemote::Discovery::Response
- Defined in:
- lib/sony_camera_remote/discovery/response.rb
Instance Method Summary collapse
-
#initialize(raw) ⇒ Response
constructor
A new instance of Response.
- #location ⇒ Object
Constructor Details
#initialize(raw) ⇒ Response
Returns a new instance of Response.
4 5 6 7 8 9 10 |
# File 'lib/sony_camera_remote/discovery/response.rb', line 4 def initialize(raw) raw.each_line do |line| if match = line.match(/^LOCATION: (.*)/) @location, _ = match.captures end end end |
Instance Method Details
#location ⇒ Object
12 13 14 |
# File 'lib/sony_camera_remote/discovery/response.rb', line 12 def location @location end |