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_token ⇒ Object
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_id ⇒ Object
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_secret ⇒ Object
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
|
3
4
5
|
# File 'lib/lono-api/configuration.rb', line 3
def configure
yield self
end
|
.scope ⇒ Object
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
|