Class: Vk::API::Board::TopicPoll
- Inherits:
-
Schema::Object
- Object
- Dry::Struct
- Schema::Object
- Vk::API::Board::TopicPoll
- Defined in:
- lib/vk/api/board/topic_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.
-
#is_closed ⇒ API::Base::BoolInt
Information whether the poll is closed.
-
#owner_id ⇒ Integer
Poll owner's ID.
-
#poll_id ⇒ Integer
Poll ID.
-
#question ⇒ String
Poll question.
-
#votes ⇒ String
Votes number.
Instance Method Details
#answer_id ⇒ Integer
Returns Current user's answer ID.
23 |
# File 'lib/vk/api/board/topic_poll.rb', line 23 attribute :answer_id, API::Types::Coercible::Int |
#answers ⇒ Array
25 |
# File 'lib/vk/api/board/topic_poll.rb', line 25 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/board/topic_poll.rb', line 15 attribute :created, API::Types::Coercible::Int |
#is_closed ⇒ API::Base::BoolInt
Returns Information whether the poll is closed.
17 |
# File 'lib/vk/api/board/topic_poll.rb', line 17 attribute :is_closed, API::Base::BoolInt.optional.default(nil) |
#owner_id ⇒ Integer
Returns Poll owner's ID.
13 |
# File 'lib/vk/api/board/topic_poll.rb', line 13 attribute :owner_id, API::Types::Coercible::Int |
#poll_id ⇒ Integer
Returns Poll ID.
11 |
# File 'lib/vk/api/board/topic_poll.rb', line 11 attribute :poll_id, API::Types::Coercible::Int.optional.default(nil) |