Module: Huey::Portal
- Defined in:
- lib/huey/portal.rb
Class Method Summary collapse
Class Method Details
.hue_ip ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/huey/portal.rb', line 5 def self.hue_ip return @hue_ip if @hue_ip response = HTTParty.get('http://www.meethue.com/api/nupnp').first raise Huey::Errors::CouldNotFindHue if response.nil? || response.empty? @hue_ip = response['internalipaddress'] end |