Class: Vk::API::Board::TopicPoll

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/board/topic_poll.rb

Overview

Instance Method Summary collapse

Instance Method Details

#answer_id ⇒ Integer

Returns Current user's answer ID.

Returns:

  • (Integer) —

    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.

Returns:

  • (Integer) —

    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.

Returns:



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.

Returns:

  • (Integer) —

    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.

Returns:

  • (Integer) —

    Poll ID



11
# File 'lib/vk/api/board/topic_poll.rb', line 11

attribute :poll_id, API::Types::Coercible::Int.optional.default(nil)

#question ⇒ String

Returns Poll question.

Returns:

  • (String) —

    Poll question



19
# File 'lib/vk/api/board/topic_poll.rb', line 19

attribute :question, API::Types::Coercible::String

#votes ⇒ String

Returns Votes number.

Returns:

  • (String) —

    Votes number



21
# File 'lib/vk/api/board/topic_poll.rb', line 21

attribute :votes, API::Types::Coercible::String