Class: YandexLocator::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_prefixObject

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

#versionObject

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