Module: Lightscape::Client
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#bridge ⇒ Object
13 14 15 |
# File 'lib/lightscape.rb', line 13 def bridge @bridge ||= ENV.fetch("BRIDGE") end |
#user ⇒ Object
17 18 19 |
# File 'lib/lightscape.rb', line 17 def user @user ||= ENV.fetch("HUE_USER", "rubyclient") end |
Instance Method Details
#base ⇒ Object
9 10 11 |
# File 'lib/lightscape.rb', line 9 def base @base ||= RestClient::Resource.new "http://#{bridge}/api/#{user}" end |