Class: Vk::API::Users::Methods::GetNearby
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Users::Methods::GetNearby
- Defined in:
- lib/vk/api/users/methods/get_nearby.rb
Overview
Indexes current user location and returns nearby users.
Arguments collapse
-
#accuracy ⇒ Integer
Current location accuracy in meters.
-
#fields ⇒ Array
List of additional fields to return.; Available values: sex, bdate, city, country, photo_50, photo_100, photo_200_orig, photo_200, photo_400_orig, photo_max, photo_max_orig, online, online_mobile, domain, has_mobile, contacts, connections, site, education, universities, schools, can_post, can_see_all_posts, can_see_audio, can_write_private_message, status, last_seen, common_count, relation, relatives, counters, screen_name, maiden_name, timezone, occupation.
-
#latitude ⇒ Number
Geographic latitude of the place a user is located, in degrees (from -90 to 90).
-
#longitude ⇒ Number
Geographic longitude of the place a user is located, in degrees (from -180 to 180).
-
#name_case ⇒ String
Case for declension of user name and surname: ; nom –nominative (default) ; gen – genitive ; dat – dative ; acc – accusative ; ins – instrumental ; abl – prepositional.
-
#radius ⇒ Integer
Search zone radius type (1 to 4); :* 1 – 300 m;; :* 2 – 2400 m;; :* 3 – 18 km;; :* 4 – 150 km.
-
#timeout ⇒ Integer
Time when a user disappears from location search results, in seconds.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Users::Methods::GetNearby
|
# File 'lib/vk/api/users/methods/get_nearby.rb', line 15
|
Instance Method Details
#accuracy ⇒ Integer
Returns current location accuracy in meters.
33 |
# File 'lib/vk/api/users/methods/get_nearby.rb', line 33 attribute :accuracy, API::Types::Coercible::Int.optional.default(nil) |
#fields ⇒ Array
Returns list of additional fields to return.; Available values: sex, bdate, city, country, photo_50, photo_100, photo_200_orig, photo_200, photo_400_orig, photo_max, photo_max_orig, online, online_mobile, domain, has_mobile, contacts, connections, site, education, universities, schools, can_post, can_see_all_posts, can_see_audio, can_write_private_message, status, last_seen, common_count, relation, relatives, counters, screen_name, maiden_name, timezone, occupation.
39 |
# File 'lib/vk/api/users/methods/get_nearby.rb', line 39 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#latitude ⇒ Number
Returns geographic latitude of the place a user is located, in degrees (from -90 to 90).
29 |
# File 'lib/vk/api/users/methods/get_nearby.rb', line 29 attribute :latitude, API::Types::Coercible::Int |
#longitude ⇒ Number
Returns geographic longitude of the place a user is located, in degrees (from -180 to 180).
31 |
# File 'lib/vk/api/users/methods/get_nearby.rb', line 31 attribute :longitude, API::Types::Coercible::Int |
#name_case ⇒ String
Returns Case for declension of user name and surname: ; nom –nominative (default) ; gen – genitive ; dat – dative ; acc – accusative ; ins – instrumental ; abl – prepositional.
41 |
# File 'lib/vk/api/users/methods/get_nearby.rb', line 41 attribute :name_case, API::Types::Coercible::String.optional.default(nil) |