Sha256: f3577163f313e2128ebe267615c6027c122509e3a9e1426c6e8674c33e17458c

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

# frozen_string_literal: true
require 'vk/api/objects'
require 'vk/schema/namespace'

module Vk
  module API
    class Board < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class TopicPoll < Vk::Schema::Object
        # @return [Integer] Poll ID
        attribute :poll_id, API::Types::Coercible::Int.optional
        # @return [Integer] Poll owner's ID
        attribute :owner_id, API::Types::Coercible::Int
        # @return [Integer] Date when poll has been created in Unixtime
        attribute :created, API::Types::Coercible::Int
        # @return [API::Base::BoolInt] Information whether the poll is closed
        attribute :is_closed, API::Base::BoolInt.optional
        # @return [String] Poll question
        attribute :question, API::Types::Coercible::String
        # @return [String] Votes number
        attribute :votes, API::Types::Coercible::String
        # @return [Integer] Current user's answer ID
        attribute :answer_id, API::Types::Coercible::Int
        # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :answers, API::Types::Coercible::Array
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/board/topic_poll.rb