Class: Teemill::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_baseObject

Returns the value of attribute api_base.


3
4
5
# File 'lib/config.rb', line 3

def api_base
  @api_base
end

#api_keyObject

Returns the value of attribute api_key.


3
4
5
# File 'lib/config.rb', line 3

def api_key
  @api_key
end

#api_versionObject

Returns the value of attribute api_version.


3
4
5
# File 'lib/config.rb', line 3

def api_version
  @api_version
end

#legacy_api_baseObject

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_keyObject

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