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_idInteger

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

#answersArray

Returns @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json.

Returns:

  • (Array)

    @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json


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

attribute :answers, API::Types::Coercible::Array.member(API::Types::Coercible::Hash)

#createdInteger

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_closedAPI::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_idInteger

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_idInteger

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)

#questionString

Returns Poll question.

Returns:

  • (String)

    Poll question


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

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

#votesString

Returns Votes number.

Returns:

  • (String)

    Votes number


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

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