Class: Vk::API::Polls::Methods::GetVoters
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Polls::Methods::GetVoters
- Defined in:
- lib/vk/api/polls/methods/get_voters.rb
Overview
Returns a list of IDs of users who selected specific answers in the poll.
Arguments collapse
-
#answer_ids ⇒ Array
Answer IDs.
-
#count ⇒ Integer
Number of user IDs to return (if the 'friends_only' parameter is not set, maximum '1000'; otherwise '10').; '100' — (default).
-
#fields ⇒ Array, 'sex'
Profile fields to return.
-
#friends_only ⇒ Boolean
'1' — to return only current user's friends; '0' — to return all users (default);.
- #is_board ⇒ Boolean
-
#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 voters.; '0' — (default).
-
#owner_id ⇒ Integer
ID of the user or community that owns the poll.
-
#poll_id ⇒ Integer
Poll ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Polls::Methods::GetVoters
|
# File 'lib/vk/api/polls/methods/get_voters.rb', line 15
|
Instance Method Details
#answer_ids ⇒ Array
Returns Answer IDs.
35 |
# File 'lib/vk/api/polls/methods/get_voters.rb', line 35 attribute :answer_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int) |
#count ⇒ Integer
Returns Number of user IDs to return (if the 'friends_only' parameter is not set, maximum '1000'; otherwise '10').; '100' — (default).
43 |
# File 'lib/vk/api/polls/methods/get_voters.rb', line 43 attribute :count, API::Types::Coercible::Int.optional.default(nil) |
#fields ⇒ Array, 'sex'
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', 'counters'.;.
45 |
# File 'lib/vk/api/polls/methods/get_voters.rb', line 45 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#friends_only ⇒ Boolean
Returns '1' — to return only current user's friends; '0' — to return all users (default);.
39 |
# File 'lib/vk/api/polls/methods/get_voters.rb', line 39 attribute :friends_only, API::Types::Form::Bool.optional.default(nil) |
#is_board ⇒ Boolean
37 |
# File 'lib/vk/api/polls/methods/get_voters.rb', line 37 attribute :is_board, API::Types::Form::Bool.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.
47 |
# File 'lib/vk/api/polls/methods/get_voters.rb', line 47 attribute :name_case, API::Types::Coercible::String.enum("nom", "gen", "dat", "acc", "ins", "abl").optional.default(nil) |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of voters.; '0' — (default).
41 |
# File 'lib/vk/api/polls/methods/get_voters.rb', line 41 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |