Class: Qubell::Configuration
- Inherits:
-
Object
- Object
- Qubell::Configuration
- Defined in:
- lib/qubell/configuration.rb
Overview
Store configuration settings
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 |
# File 'lib/qubell/configuration.rb', line 20 def initialize @domain = 'https://express.tonomi.com' @api_version = '1' end |
Instance Attribute Details
#api_version ⇒ Object
Returns the value of attribute api_version.
17 18 19 |
# File 'lib/qubell/configuration.rb', line 17 def api_version @api_version end |
#domain ⇒ Object
Returns the value of attribute domain.
17 18 19 |
# File 'lib/qubell/configuration.rb', line 17 def domain @domain end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
18 19 20 |
# File 'lib/qubell/configuration.rb', line 18 def endpoint @endpoint end |
#password ⇒ Object
Returns the value of attribute password.
17 18 19 |
# File 'lib/qubell/configuration.rb', line 17 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
17 18 19 |
# File 'lib/qubell/configuration.rb', line 17 def username @username end |
Instance Method Details
#to_s ⇒ Object
29 30 31 32 |
# File 'lib/qubell/configuration.rb', line 29 def to_s %({"domain": "#{@domain}","api_version": "#{@api_version}",) + %("username": "#{@username}","password": "#{@password}"}) end |