Class: YandexLocator::Configuration
- Inherits:
-
Object
- Object
- YandexLocator::Configuration
- 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
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#url_prefix ⇒ Object
Returns the value of attribute url_prefix.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
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_prefix ⇒ Object
Returns the value of attribute url_prefix.
3 4 5 |
# File 'lib/yandex_locator/configuration.rb', line 3 def url_prefix @url_prefix end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/yandex_locator/configuration.rb', line 3 def version @version end |