Class: Vk::API::Market::Methods::ReorderItems

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

Overview

Changes item place in a collection.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of an item owner community.

  • :album_id (Integer)

    ID of a collection to reorder items in. Set 0 to reorder full items list.

  • :item_id (Integer)

    Item ID.

  • :before (Integer)

    ID of an item to place current item before it.

  • :after (Integer)

    ID of an item to place current item after it.


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

Instance Method Details

#afterInteger

Returns ID of an item to place current item after it.

Returns:

  • (Integer)

    ID of an item to place current item after it.


35
# File 'lib/vk/api/market/methods/reorder_items.rb', line 35

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

#album_idInteger

Returns ID of a collection to reorder items in. Set 0 to reorder full items list.

Returns:

  • (Integer)

    ID of a collection to reorder items in. Set 0 to reorder full items list.


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

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

#beforeInteger

Returns ID of an item to place current item before it.

Returns:

  • (Integer)

    ID of an item to place current item before it.


33
# File 'lib/vk/api/market/methods/reorder_items.rb', line 33

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

#item_idInteger

Returns Item ID.

Returns:

  • (Integer)

    Item ID.


31
# File 'lib/vk/api/market/methods/reorder_items.rb', line 31

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

#owner_idInteger

Returns ID of an item owner community.

Returns:

  • (Integer)

    ID of an item owner community.


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

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