Class: Vk::API::Friends::Methods::Search
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Friends::Methods::Search
- Defined in:
- lib/vk/api/friends/methods/search.rb
Overview
Returns a list of friends matching the search criteria.
Arguments collapse
-
#count ⇒ Integer
Number of friends to return.
-
#fields ⇒ Array, 'bdate'
Profile fields to return.
-
#name_case ⇒ String
Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional.
-
#offset ⇒ Integer
Offset needed to return a specific subset of friends.
-
#q ⇒ String
Search query string (e.g., 'Vasya Babich').
-
#user_id ⇒ Integer
User ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Friends::Methods::Search
|
# File 'lib/vk/api/friends/methods/search.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of friends to return.
38 |
# File 'lib/vk/api/friends/methods/search.rb', line 38 attribute :count, API::Types::Coercible::Int.optional.default(20) |
#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';.
32 |
# File 'lib/vk/api/friends/methods/search.rb', line 32 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#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.
34 |
# File 'lib/vk/api/friends/methods/search.rb', line 34 attribute :name_case, API::Types::Coercible::String.enum("nom", "gen", "dat", "acc", "ins", "abl").optional.default("nom") |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of friends.
36 |
# File 'lib/vk/api/friends/methods/search.rb', line 36 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |