Exception: Hue::API::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/hue.rb

Instance Attribute Summary

Attributes inherited from Error

#original_error

Instance Method Summary collapse

Methods inherited from Error

#to_s

Constructor Details

#initialize(api_error) ⇒ Error

Returns a new instance of Error.



125
126
127
128
129
# File 'lib/hue.rb', line 125

def initialize(api_error)
  @type = api_error['type']
  @address = api_error['address']
  super(api_error['description'])
end