Class: Vk::API::Secure::Methods::SetCounter

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/secure/methods/set_counter.rb

Overview

Sets a counter which is shown to the user in bold in the left menu.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Secure::Methods::SetCounter

Parameters:

  • arguments (Hash)

Options Hash (arguments):



# File 'lib/vk/api/secure/methods/set_counter.rb', line 15

Instance Method Details

#counterInteger

Returns counter value.

Returns:

  • (Integer)

    counter value.



29
# File 'lib/vk/api/secure/methods/set_counter.rb', line 29

attribute :counter, API::Types::Coercible::Int.optional.default(nil)

#countersArray



25
# File 'lib/vk/api/secure/methods/set_counter.rb', line 25

attribute :counters, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil)

#user_idInteger



27
# File 'lib/vk/api/secure/methods/set_counter.rb', line 27

attribute :user_id, API::Types::Coercible::Int.optional.default(nil)