Class: Teemill::Config
- Inherits:
-
Object
- Object
- Teemill::Config
- Defined in:
- lib/config.rb
Instance Attribute Summary collapse
-
#api_base ⇒ Object
Returns the value of attribute api_base.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#legacy_api_base ⇒ Object
Returns the value of attribute legacy_api_base.
-
#legacy_api_key ⇒ Object
Returns the value of attribute legacy_api_key.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 |
# File 'lib/config.rb', line 9 def initialize @api_version = 1 @api_base = 'https://api.teemill.com' @legacy_api_base = 'https://teemill.com' end |
Instance Attribute Details
#api_base ⇒ Object
Returns the value of attribute api_base.
3 4 5 |
# File 'lib/config.rb', line 3 def api_base @api_base end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/config.rb', line 3 def api_key @api_key end |
#api_version ⇒ Object
Returns the value of attribute api_version.
3 4 5 |
# File 'lib/config.rb', line 3 def api_version @api_version end |
#legacy_api_base ⇒ Object
Returns the value of attribute legacy_api_base.
3 4 5 |
# File 'lib/config.rb', line 3 def legacy_api_base @legacy_api_base end |
#legacy_api_key ⇒ Object
Returns the value of attribute legacy_api_key.
3 4 5 |
# File 'lib/config.rb', line 3 def legacy_api_key @legacy_api_key end |