Class: YandexLocator::Configuration

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

Constant Summary collapse

DEFAULT_CONF =
{
  version: '1.0',
  url_prefix: 'http://api.lbs.yandex.net'
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @version = DEFAULT_CONF[:version]
  @url_prefix = DEFAULT_CONF[:url_prefix]
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#url_prefixObject

Returns the value of attribute url_prefix.



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

def url_prefix
  @url_prefix
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end