Class: SonyCameraRemote::Discovery::DeviceInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/sony_camera_remote/discovery/device_info.rb

Class Method Summary collapse

Class Method Details

.fetch(location) ⇒ Object



72
73
74
# File 'lib/sony_camera_remote/discovery/device_info.rb', line 72

def fetch(location)
  DeviceMapper.map(HTTParty.get(location)['root']['device'])
end