Class: DeskLight::Configuration
- Inherits:
-
Object
- Object
- DeskLight::Configuration
- Defined in:
- lib/desk_light/configuration.rb
Instance Attribute Summary collapse
-
#api_path ⇒ Object
Returns the value of attribute api_path.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#email ⇒ Object
Returns the value of attribute email.
-
#key ⇒ Object
Returns the value of attribute key.
-
#password ⇒ Object
Returns the value of attribute password.
-
#rpm ⇒ Object
Returns the value of attribute rpm.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #[](value) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 |
# File 'lib/desk_light/configuration.rb', line 17 def initialize self.rpm = 300 self.api_path = "/api/v2" end |
Instance Attribute Details
#api_path ⇒ Object
Returns the value of attribute api_path.
6 7 8 |
# File 'lib/desk_light/configuration.rb', line 6 def api_path @api_path end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
16 17 18 |
# File 'lib/desk_light/configuration.rb', line 16 def api_secret @api_secret end |
#api_token ⇒ Object
Returns the value of attribute api_token.
15 16 17 |
# File 'lib/desk_light/configuration.rb', line 15 def api_token @api_token end |
#email ⇒ Object
Returns the value of attribute email.
11 12 13 |
# File 'lib/desk_light/configuration.rb', line 11 def email @email end |
#key ⇒ Object
Returns the value of attribute key.
13 14 15 |
# File 'lib/desk_light/configuration.rb', line 13 def key @key end |
#password ⇒ Object
Returns the value of attribute password.
12 13 14 |
# File 'lib/desk_light/configuration.rb', line 12 def password @password end |
#rpm ⇒ Object
Returns the value of attribute rpm.
5 6 7 |
# File 'lib/desk_light/configuration.rb', line 5 def rpm @rpm end |
#secret ⇒ Object
Returns the value of attribute secret.
14 15 16 |
# File 'lib/desk_light/configuration.rb', line 14 def secret @secret end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
4 5 6 |
# File 'lib/desk_light/configuration.rb', line 4 def subdomain @subdomain end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
3 4 5 |
# File 'lib/desk_light/configuration.rb', line 3 def uri @uri end |
Instance Method Details
#[](value) ⇒ Object
21 22 23 |
# File 'lib/desk_light/configuration.rb', line 21 def [](value) self.public_send(value) end |