Class: Vk::API::Market::Methods::AddToAlbum

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

Overview

Adds an item to one or multiple collections.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Market::Methods::AddToAlbum

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of an item owner community.

  • :item_id (Integer)

    Item ID.

  • :album_ids (Array)

    Collections IDs to add item to.


# File 'lib/vk/api/market/methods/add_to_album.rb', line 15

Instance Method Details

#album_idsArray

Returns Collections IDs to add item to.

Returns:

  • (Array)

    Collections IDs to add item to.


29
# File 'lib/vk/api/market/methods/add_to_album.rb', line 29

attribute :album_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int)

#item_idInteger

Returns Item ID.

Returns:

  • (Integer)

    Item ID.


27
# File 'lib/vk/api/market/methods/add_to_album.rb', line 27

attribute :item_id, API::Types::Coercible::Int

#owner_idInteger

Returns ID of an item owner community.

Returns:

  • (Integer)

    ID of an item owner community.


25
# File 'lib/vk/api/market/methods/add_to_album.rb', line 25

attribute :owner_id, API::Types::Coercible::Int