Class: Vk::API::Friends::Methods::Edit

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/friends/methods/edit.rb

Overview

Edits the friend lists of the selected user.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Friends::Methods::Edit

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    ID of the user whose friend list is to be edited.

  • :list_ids (Array)

    IDs of the friend lists to which to add the user.



# File 'lib/vk/api/friends/methods/edit.rb', line 15

Instance Method Details

#list_idsArray

Returns IDs of the friend lists to which to add the user.

Returns:

  • (Array)

    IDs of the friend lists to which to add the user.



26
# File 'lib/vk/api/friends/methods/edit.rb', line 26

attribute :list_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int).optional.default(nil)

#user_idInteger

Returns ID of the user whose friend list is to be edited.

Returns:

  • (Integer)

    ID of the user whose friend list is to be edited.



24
# File 'lib/vk/api/friends/methods/edit.rb', line 24

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