Sha256: 620359942cd8761bcaa60fc0c49c7a4b6f236f0395c10ffd2f6e2b6bff0e4b0f

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

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

module Vk
  module API
    class Secure < Vk::Schema::Namespace
      module Methods
        # Sets a counter which is shown to the user in bold in the left menu.
        class SetCounter < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'secure.setCounter'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Array] :counters @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
          #   @option arguments [Integer] :user_id @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
          #   @option arguments [Integer] :counter counter value.
          #   @return [Secure::Methods::SetCounter]

          # @!group Arguments

          # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
          attribute :counters, API::Types::Coercible::Array.optional
          # @return [Integer] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
          attribute :user_id, API::Types::Coercible::Int.optional
          # @return [Integer] counter value.
          attribute :counter, API::Types::Coercible::Int.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/secure/methods/set_counter.rb