Class: Vk::API::Polls::Poll
- Inherits:
-
Schema::Object
- Object
- Dry::Struct
- Schema::Object
- Vk::API::Polls::Poll
- Defined in:
- lib/vk/api/polls/poll.rb
Overview
Instance Method Summary collapse
-
#answer_id ⇒ Integer
Current user's answer ID.
- #answers ⇒ Array
-
#created ⇒ Integer
Date when poll has been created in Unixtime.
-
#id ⇒ Integer
Poll ID.
-
#owner_id ⇒ Integer
Poll owner's ID.
-
#question ⇒ String
Poll question.
-
#votes ⇒ String
Votes number.
Instance Method Details
#answer_id ⇒ Integer
Returns Current user's answer ID.
21 |
# File 'lib/vk/api/polls/poll.rb', line 21 attribute :answer_id, API::Types::Coercible::Int |
#answers ⇒ Array
23 |
# File 'lib/vk/api/polls/poll.rb', line 23 attribute :answers, API::Types::Coercible::Array.member(API::Types::Coercible::Hash) |
#created ⇒ Integer
Returns Date when poll has been created in Unixtime.
15 |
# File 'lib/vk/api/polls/poll.rb', line 15 attribute :created, API::Types::Coercible::Int |
#id ⇒ Integer
Returns Poll ID.
11 |
# File 'lib/vk/api/polls/poll.rb', line 11 attribute :id, API::Types::Coercible::Int |
#owner_id ⇒ Integer
Returns Poll owner's ID.
13 |
# File 'lib/vk/api/polls/poll.rb', line 13 attribute :owner_id, API::Types::Coercible::Int |