Class: YandexLocator::Configuration
- Inherits:
-
Object
- Object
- YandexLocator::Configuration
- Defined in:
- lib/yandex_locator/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
curl -H “Content-Type: application/json” -X POST -d ‘json=“common”:{“version”:“1.0”,“api_key”:“ABM6WU0BAAAANfFuIQIAV1pUEYIBeogyUNvVbhNaJPWeM-AAAAAAAAAAAACRXgDsaYNpZWpBczn4Lq6QmkwK6g==”,“gsm_cells“:,”wifi_networks“:,“ip”:“address_v4”:“178“address_v4”:“178.247“address_v4”:“178.247.233“address_v4”:“178.247.233.32”}’ api.lbs.yandex.net/geolocation.
-
#url_prefix ⇒ Object
curl -H “Content-Type: application/json” -X POST -d ‘json=“common”:{“version”:“1.0”,“api_key”:“ABM6WU0BAAAANfFuIQIAV1pUEYIBeogyUNvVbhNaJPWeM-AAAAAAAAAAAACRXgDsaYNpZWpBczn4Lq6QmkwK6g==”,“gsm_cells“:,”wifi_networks“:,“ip”:“address_v4”:“178“address_v4”:“178.247“address_v4”:“178.247.233“address_v4”:“178.247.233.32”}’ api.lbs.yandex.net/geolocation.
-
#version ⇒ Object
curl -H “Content-Type: application/json” -X POST -d ‘json=“common”:{“version”:“1.0”,“api_key”:“ABM6WU0BAAAANfFuIQIAV1pUEYIBeogyUNvVbhNaJPWeM-AAAAAAAAAAAACRXgDsaYNpZWpBczn4Lq6QmkwK6g==”,“gsm_cells“:,”wifi_networks“:,“ip”:“address_v4”:“178“address_v4”:“178.247“address_v4”:“178.247.233“address_v4”:“178.247.233.32”}’ api.lbs.yandex.net/geolocation.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 |
# File 'lib/yandex_locator/configuration.rb', line 6 def initialize @key = nil @version = "1.0" @url_prefix = "http://api.lbs.yandex.net" end |
Instance Attribute Details
#api_key ⇒ Object
curl -H “Content-Type: application/json” -X POST -d ‘json=“common”:{“version”:“1.0”,“api_key”:“ABM6WU0BAAAANfFuIQIAV1pUEYIBeogyUNvVbhNaJPWeM-AAAAAAAAAAAACRXgDsaYNpZWpBczn4Lq6QmkwK6g==”,“gsm_cells“:,”wifi_networks“:,“ip”:YandexLocator::Configuration.“address_v4”:“178“address_v4”:“178.247“address_v4”:“178.247.233“address_v4”:“178.247.233.32”}’ api.lbs.yandex.net/geolocation
4 5 6 |
# File 'lib/yandex_locator/configuration.rb', line 4 def api_key @api_key end |
#url_prefix ⇒ Object
curl -H “Content-Type: application/json” -X POST -d ‘json=“common”:{“version”:“1.0”,“api_key”:“ABM6WU0BAAAANfFuIQIAV1pUEYIBeogyUNvVbhNaJPWeM-AAAAAAAAAAAACRXgDsaYNpZWpBczn4Lq6QmkwK6g==”,“gsm_cells“:,”wifi_networks“:,“ip”:YandexLocator::Configuration.“address_v4”:“178“address_v4”:“178.247“address_v4”:“178.247.233“address_v4”:“178.247.233.32”}’ api.lbs.yandex.net/geolocation
4 5 6 |
# File 'lib/yandex_locator/configuration.rb', line 4 def url_prefix @url_prefix end |
#version ⇒ Object
curl -H “Content-Type: application/json” -X POST -d ‘json=“common”:{“version”:“1.0”,“api_key”:“ABM6WU0BAAAANfFuIQIAV1pUEYIBeogyUNvVbhNaJPWeM-AAAAAAAAAAAACRXgDsaYNpZWpBczn4Lq6QmkwK6g==”,“gsm_cells“:,”wifi_networks“:,“ip”:YandexLocator::Configuration.“address_v4”:“178“address_v4”:“178.247“address_v4”:“178.247.233“address_v4”:“178.247.233.32”}’ api.lbs.yandex.net/geolocation
4 5 6 |
# File 'lib/yandex_locator/configuration.rb', line 4 def version @version end |