Class: Levelup::Configuration

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

Constant Summary collapse

VERSION =
'0.9.5'
DEFAULT_API_VERSION =
:v15

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.base_api_urlObject

Returns the value of attribute base_api_url


7
8
9
# File 'lib/levelup/configuration.rb', line 7

def base_api_url
  @base_api_url
end

Class Method Details

.api_url(version) ⇒ Object


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

def self.api_url(version)
  base_api_url + VERSIONS[version]
end