Sha256: 78a95cae7ea5a408b04d158ab0919034be4d606ca342b8d40186c9e1e7614aa0
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
# frozen_string_literal: true require 'vk/api/methods' module Vk module API class Polls < Vk::Schema::Namespace module Methods # Adds the current user's vote to the selected answer in the poll. class AddVote < Schema::Method # @!group Properties self.open = false self.method = 'polls.addVote' # @method initialize(arguments) # @param [Hash] arguments # @option arguments [Integer] :owner_id ID of the user or community that owns the poll. Use a negative value to designate a community ID. # @option arguments [Integer] :poll_id Poll ID. # @option arguments [Integer] :answer_id Answer ID. # @option arguments [Boolean] :is_board @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json # @return [Polls::Methods::AddVote] # @!group Arguments # @return [Integer] ID of the user or community that owns the poll. Use a negative value to designate a community ID. attribute :owner_id, API::Types::Coercible::Int.optional # @return [Integer] Poll ID. attribute :poll_id, API::Types::Coercible::Int.optional # @return [Integer] Answer ID. attribute :answer_id, API::Types::Coercible::Int.optional # @return [Boolean] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json attribute :is_board, API::Types::Bool.optional end 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/polls/methods/add_vote.rb |