Class: Vk::API::Secure::Methods::SetUserLevel

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

Overview

Sets user game level in the application which can be seen by his/her friends.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):


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

Instance Method Details

#levelInteger

Returns level value.

Returns:

  • (Integer)

    level value.


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

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

#levelsArray


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

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

#user_idInteger


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

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