Class: Vk::API::Friends::Methods::Get
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Friends::Methods::Get
- Defined in:
- lib/vk/api/friends/methods/get.rb
Overview
Returns a list of user IDs or detailed information about a user's friends.
Arguments collapse
-
#count ⇒ Integer
Number of friends to return.
-
#fields ⇒ Array, 'bdate'
Profile fields to return.
-
#list_id ⇒ Integer
ID of the friend list returned by the method to be used as the source.
-
#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.
-
#order ⇒ String
Sort order: ; 'name' — by name (enabled only if the 'fields' parameter is used); 'hints' — by rating, similar to how friends are sorted in My friends section; ; This parameter is available only for .
-
#user_id ⇒ Integer
User ID.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Friends::Methods::Get constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#count ⇒ Integer
35 |
# File 'lib/vk/api/friends/methods/get.rb', line 35 attribute :count, API::Types::Coercible::Int.optional.default(nil) |
#fields ⇒ Array, 'bdate'
39 |
# File 'lib/vk/api/friends/methods/get.rb', line 39 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#list_id ⇒ Integer
33 |
# File 'lib/vk/api/friends/methods/get.rb', line 33 attribute :list_id, API::Types::Coercible::Int.optional.default(nil) |
#name_case ⇒ String
41 |
# File 'lib/vk/api/friends/methods/get.rb', line 41 attribute :name_case, API::Types::Coercible::String.enum("nom", "gen", "dat", "acc", "ins", "abl").optional.default(nil) |
#offset ⇒ Integer
37 |
# File 'lib/vk/api/friends/methods/get.rb', line 37 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#order ⇒ String
31 |
# File 'lib/vk/api/friends/methods/get.rb', line 31 attribute :order, API::Types::Coercible::String.enum("name", "hints").optional.default(nil) |
#user_id ⇒ Integer
29 |
# File 'lib/vk/api/friends/methods/get.rb', line 29 attribute :user_id, API::Types::Coercible::Int.optional.default(nil) |