Class: Vk::API::Users::Methods::Search
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Users::Methods::Search
- Defined in:
- lib/vk/api/users/methods/search.rb
Overview
Returns a list of users matching the search criteria.
Arguments collapse
-
#age_from ⇒ Integer
Minimum age.
-
#age_to ⇒ Integer
Maximum age.
-
#birth_day ⇒ Integer
Day of birth.
-
#birth_month ⇒ Integer
Month of birth.
-
#birth_year ⇒ Integer
Year of birth.
-
#city ⇒ Integer
City ID.
-
#company ⇒ String
Name of the company where users work.
-
#count ⇒ Integer
Number of users to return.
-
#country ⇒ Integer
Country ID.
-
#fields ⇒ Array, 'bdate'
Profile fields to return.
- #from_list ⇒ Array
-
#group_id ⇒ Integer
ID of a community to search in communities.
-
#has_photo ⇒ Boolean
'1' — with photo only; '0' — all users.
-
#hometown ⇒ String
City name in a string.
-
#interests ⇒ String
Users' interests.
-
#offset ⇒ Integer
Offset needed to return a specific subset of users.
-
#online ⇒ Boolean
'1' — online only; '0' — all users.
-
#position ⇒ String
Job position.
-
#q ⇒ String
Search query string (e.g., 'Vasya Babich').
-
#religion ⇒ String
Users' religious affiliation.
-
#school ⇒ Integer
ID of the school.
-
#school_city ⇒ Integer
ID of the city where users finished school.
- #school_class ⇒ Integer
-
#school_country ⇒ Integer
ID of the country where users finished school.
-
#school_year ⇒ Integer
School graduation year.
-
#sex ⇒ Integer
'1' — female; '2' — male; '0' — any (default).
-
#sort ⇒ Integer
Sort order:; '1' — by date registered; '0' — by rating.
-
#status ⇒ Integer
Relationship status:; '1' — Not married; '2' — In a relationship; '3' — Engaged; '4' — Married; '5' — It's complicated; '6' — Actively searching; '7' — In love.
-
#university ⇒ Integer
ID of the institution of higher education.
-
#university_chair ⇒ Integer
Chair ID.
-
#university_country ⇒ Integer
ID of the country where the user graduated.
-
#university_faculty ⇒ Integer
Faculty ID.
-
#university_year ⇒ Integer
Year of graduation from an institution of higher education.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Users::Methods::Search constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Users::Methods::Search
|
# File 'lib/vk/api/users/methods/search.rb', line 15
|
Instance Method Details
#age_from ⇒ Integer
Returns Minimum age.
85 |
# File 'lib/vk/api/users/methods/search.rb', line 85 attribute :age_from, API::Types::Coercible::Int.optional.default(nil) |
#age_to ⇒ Integer
Returns Maximum age.
87 |
# File 'lib/vk/api/users/methods/search.rb', line 87 attribute :age_to, API::Types::Coercible::Int.optional.default(nil) |
#birth_day ⇒ Integer
Returns Day of birth.
89 |
# File 'lib/vk/api/users/methods/search.rb', line 89 attribute :birth_day, API::Types::Coercible::Int.optional.default(nil) |
#birth_month ⇒ Integer
Returns Month of birth.
91 |
# File 'lib/vk/api/users/methods/search.rb', line 91 attribute :birth_month, API::Types::Coercible::Int.optional.default(nil) |
#birth_year ⇒ Integer
Returns Year of birth.
93 |
# File 'lib/vk/api/users/methods/search.rb', line 93 attribute :birth_year, API::Types::Coercible::Int.optional.default(nil) |
#city ⇒ Integer
Returns City ID.
65 |
# File 'lib/vk/api/users/methods/search.rb', line 65 attribute :city, API::Types::Coercible::Int.optional.default(nil) |
#company ⇒ String
Returns Name of the company where users work.
113 |
# File 'lib/vk/api/users/methods/search.rb', line 113 attribute :company, API::Types::Coercible::String.optional.default(nil) |
#count ⇒ Integer
Returns Number of users to return.
61 |
# File 'lib/vk/api/users/methods/search.rb', line 61 attribute :count, API::Types::Coercible::Int.optional.default(20) |
#country ⇒ Integer
Returns Country ID.
67 |
# File 'lib/vk/api/users/methods/search.rb', line 67 attribute :country, API::Types::Coercible::Int.optional.default(nil) |
#fields ⇒ Array, 'bdate'
Returns Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'rate', 'contacts', 'education', 'online';.
63 |
# File 'lib/vk/api/users/methods/search.rb', line 63 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#from_list ⇒ Array
119 |
# File 'lib/vk/api/users/methods/search.rb', line 119 attribute :from_list, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#group_id ⇒ Integer
Returns ID of a community to search in communities.
117 |
# File 'lib/vk/api/users/methods/search.rb', line 117 attribute :group_id, API::Types::Coercible::Int.optional.default(nil) |
#has_photo ⇒ Boolean
Returns '1' — with photo only; '0' — all users.
97 |
# File 'lib/vk/api/users/methods/search.rb', line 97 attribute :has_photo, API::Types::Form::Bool.optional.default(nil) |
#hometown ⇒ String
Returns City name in a string.
69 |
# File 'lib/vk/api/users/methods/search.rb', line 69 attribute :hometown, API::Types::Coercible::String.optional.default(nil) |
#interests ⇒ String
Returns Users' interests.
111 |
# File 'lib/vk/api/users/methods/search.rb', line 111 attribute :interests, API::Types::Coercible::String.optional.default(nil) |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of users.
59 |
# File 'lib/vk/api/users/methods/search.rb', line 59 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#online ⇒ Boolean
Returns '1' — online only; '0' — all users.
95 |
# File 'lib/vk/api/users/methods/search.rb', line 95 attribute :online, API::Types::Form::Bool.optional.default(nil) |
#position ⇒ String
Returns Job position.
115 |
# File 'lib/vk/api/users/methods/search.rb', line 115 attribute :position, API::Types::Coercible::String.optional.default(nil) |
#q ⇒ String
Returns Search query string (e.g., 'Vasya Babich').
55 |
# File 'lib/vk/api/users/methods/search.rb', line 55 attribute :q, API::Types::Coercible::String.optional.default(nil) |
#religion ⇒ String
Returns Users' religious affiliation.
109 |
# File 'lib/vk/api/users/methods/search.rb', line 109 attribute :religion, API::Types::Coercible::String.optional.default(nil) |
#school ⇒ Integer
Returns ID of the school.
105 |
# File 'lib/vk/api/users/methods/search.rb', line 105 attribute :school, API::Types::Coercible::Int.optional.default(nil) |
#school_city ⇒ Integer
Returns ID of the city where users finished school.
101 |
# File 'lib/vk/api/users/methods/search.rb', line 101 attribute :school_city, API::Types::Coercible::Int.optional.default(nil) |
#school_class ⇒ Integer
103 |
# File 'lib/vk/api/users/methods/search.rb', line 103 attribute :school_class, API::Types::Coercible::Int.optional.default(nil) |
#school_country ⇒ Integer
Returns ID of the country where users finished school.
99 |
# File 'lib/vk/api/users/methods/search.rb', line 99 attribute :school_country, API::Types::Coercible::Int.optional.default(nil) |
#school_year ⇒ Integer
Returns School graduation year.
107 |
# File 'lib/vk/api/users/methods/search.rb', line 107 attribute :school_year, API::Types::Coercible::Int.optional.default(nil) |
#sex ⇒ Integer
Returns '1' — female; '2' — male; '0' — any (default).
81 |
# File 'lib/vk/api/users/methods/search.rb', line 81 attribute :sex, API::Types::Coercible::Int.optional.default(nil) |
#sort ⇒ Integer
Returns Sort order:; '1' — by date registered; '0' — by rating.
57 |
# File 'lib/vk/api/users/methods/search.rb', line 57 attribute :sort, API::Types::Coercible::Int.optional.default(nil) |
#status ⇒ Integer
Returns Relationship status:; '1' — Not married; '2' — In a relationship; '3' — Engaged; '4' — Married; '5' — It's complicated; '6' — Actively searching; '7' — In love.
83 |
# File 'lib/vk/api/users/methods/search.rb', line 83 attribute :status, API::Types::Coercible::Int.optional.default(nil) |
#university ⇒ Integer
Returns ID of the institution of higher education.
73 |
# File 'lib/vk/api/users/methods/search.rb', line 73 attribute :university, API::Types::Coercible::Int.optional.default(nil) |
#university_chair ⇒ Integer
Returns Chair ID.
79 |
# File 'lib/vk/api/users/methods/search.rb', line 79 attribute :university_chair, API::Types::Coercible::Int.optional.default(nil) |
#university_country ⇒ Integer
Returns ID of the country where the user graduated.
71 |
# File 'lib/vk/api/users/methods/search.rb', line 71 attribute :university_country, API::Types::Coercible::Int.optional.default(nil) |