Class: Vk::API::Account::Methods::SetNameInMenu

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

Overview

Sets an application screen name (up to 17 characters), that is shown to the user in the left menu.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Account::Methods::SetNameInMenu

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    User ID.

  • :name (String)

    Application screen name.



# File 'lib/vk/api/account/methods/set_name_in_menu.rb', line 15

Instance Method Details

#nameString

Returns Application screen name.

Returns:

  • (String)

    Application screen name.



26
# File 'lib/vk/api/account/methods/set_name_in_menu.rb', line 26

attribute :name, API::Types::Coercible::String.optional.default(nil)

#user_idInteger

Returns User ID.

Returns:

  • (Integer)

    User ID.



24
# File 'lib/vk/api/account/methods/set_name_in_menu.rb', line 24

attribute :user_id, API::Types::Coercible::Int