Class: Vk::API::Polls::Poll

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/polls/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



21
# File 'lib/vk/api/polls/poll.rb', line 21

attribute :answer_id, API::Types::Coercible::Int

#answersArray



23
# File 'lib/vk/api/polls/poll.rb', line 23

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/polls/poll.rb', line 15

attribute :created, API::Types::Coercible::Int

#idInteger

Returns Poll ID.

Returns:

  • (Integer)

    Poll ID



11
# File 'lib/vk/api/polls/poll.rb', line 11

attribute :id, API::Types::Coercible::Int

#owner_idInteger

Returns Poll owner's ID.

Returns:

  • (Integer)

    Poll owner's ID



13
# File 'lib/vk/api/polls/poll.rb', line 13

attribute :owner_id, API::Types::Coercible::Int

#questionString

Returns Poll question.

Returns:

  • (String)

    Poll question



17
# File 'lib/vk/api/polls/poll.rb', line 17

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

#votesString

Returns Votes number.

Returns:

  • (String)

    Votes number



19
# File 'lib/vk/api/polls/poll.rb', line 19

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