Module: Lono

Defined in:
lib/lono-api.rb,
lib/lono-api/device.rb,
lib/lono-api/errors.rb,
lib/lono-api/version.rb,
lib/lono-api/auth_url.rb,
lib/lono-api/configuration.rb,
lib/lono-api/session_token.rb

Defined Under Namespace

Classes: AuthUrl, ClientError, CloudUnsuccessfulError, Device, InvalidDeviceIdError, NoTokenError, SessionToken, ZoneNonSuccessError

Constant Summary collapse

API_VERSION =
'v1'
VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.auth_tokenObject



27
28
29
# File 'lib/lono-api/configuration.rb', line 27

def auth_token
  @@auth_token
end

.auth_token=(auth_token) ⇒ Object



23
24
25
# File 'lib/lono-api/configuration.rb', line 23

def auth_token=(auth_token)
  @@auth_token = auth_token
end

.client_idObject



11
12
13
# File 'lib/lono-api/configuration.rb', line 11

def client_id
  @@client_id
end

.client_id=(client_id) ⇒ Object



7
8
9
# File 'lib/lono-api/configuration.rb', line 7

def client_id=(client_id)
  @@client_id = client_id
end

.client_secretObject



19
20
21
# File 'lib/lono-api/configuration.rb', line 19

def client_secret
  @@client_secret
end

.client_secret=(client_secret) ⇒ Object



15
16
17
# File 'lib/lono-api/configuration.rb', line 15

def client_secret=(client_secret)
  @@client_secret = client_secret
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Lono)

    the object that the method was called on



3
4
5
# File 'lib/lono-api/configuration.rb', line 3

def configure
  yield self
end

.scopeObject



35
36
37
# File 'lib/lono-api/configuration.rb', line 35

def scope
  @@scope
end

.scope=(scope) ⇒ Object



31
32
33
# File 'lib/lono-api/configuration.rb', line 31

def scope=(scope)
  @@scope = scope
end