Module: Lightscape::Client

Extended by:
Client
Included in:
Client
Defined in:
lib/lightscape.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bridgeObject



13
14
15
# File 'lib/lightscape.rb', line 13

def bridge
  @bridge ||= ENV.fetch("BRIDGE")
end

#userObject



17
18
19
# File 'lib/lightscape.rb', line 17

def user
  @user ||= ENV.fetch("HUE_USER", "rubyclient")
end

Instance Method Details

#baseObject



9
10
11
# File 'lib/lightscape.rb', line 9

def base
  @base ||= RestClient::Resource.new "http://#{bridge}/api/#{user}"
end