Class: DeskLight::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/desk_light/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathObject

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_secretObject

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_tokenObject

Returns the value of attribute api_token.



15
16
17
# File 'lib/desk_light/configuration.rb', line 15

def api_token
  @api_token
end

#emailObject

Returns the value of attribute email.



11
12
13
# File 'lib/desk_light/configuration.rb', line 11

def email
  @email
end

#keyObject

Returns the value of attribute key.



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

def key
  @key
end

#passwordObject

Returns the value of attribute password.



12
13
14
# File 'lib/desk_light/configuration.rb', line 12

def password
  @password
end

#rpmObject

Returns the value of attribute rpm.



5
6
7
# File 'lib/desk_light/configuration.rb', line 5

def rpm
  @rpm
end

#secretObject

Returns the value of attribute secret.



14
15
16
# File 'lib/desk_light/configuration.rb', line 14

def secret
  @secret
end

#subdomainObject

Returns the value of attribute subdomain.



4
5
6
# File 'lib/desk_light/configuration.rb', line 4

def subdomain
  @subdomain
end

#uriObject (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