Sha256: 4b3905a71db45e0f475738b6bbf28e2c9463ddd9877fb0f68ddd2bf29bec9080

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Polls < Vk::Schema::Namespace
      module Methods
        # Deletes the current user's vote from the selected answer in the poll.
        class DeleteVote < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'polls.deleteVote'

          # @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::DeleteVote]

          # @!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/delete_vote.rb