Class: Vk::API::Market::Methods::Edit

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

Overview

Edits an item.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of an item owner community.

  • :item_id (Integer)

    Item ID.

  • :name (String)

    Item name.

  • :description (String)

    Item description.

  • :category_id (Integer)

    Item category ID.

  • :price (Number)

    Item price.

  • :deleted (Boolean)

    Item status ('1' — deleted, '0' — not deleted).

  • :main_photo_id (Integer)

    Cover photo ID.

  • :photo_ids (Array)

    IDs of additional photos.



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

Instance Method Details

#category_idInteger

Returns Item category ID.

Returns:

  • (Integer)

    Item category ID.



39
# File 'lib/vk/api/market/methods/edit.rb', line 39

attribute :category_id, API::Types::Coercible::Int

#deletedBoolean

Returns Item status ('1' — deleted, '0' — not deleted).

Returns:

  • (Boolean)

    Item status ('1' — deleted, '0' — not deleted).



43
# File 'lib/vk/api/market/methods/edit.rb', line 43

attribute :deleted, API::Types::Form::Bool.optional.default(nil)

#descriptionString

Returns Item description.

Returns:

  • (String)

    Item description.



37
# File 'lib/vk/api/market/methods/edit.rb', line 37

attribute :description, API::Types::Coercible::String

#item_idInteger

Returns Item ID.

Returns:

  • (Integer)

    Item ID.



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

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

#main_photo_idInteger

Returns Cover photo ID.

Returns:

  • (Integer)

    Cover photo ID.



45
# File 'lib/vk/api/market/methods/edit.rb', line 45

attribute :main_photo_id, API::Types::Coercible::Int

#nameString

Returns Item name.

Returns:

  • (String)

    Item name.



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

attribute :name, API::Types::Coercible::String

#owner_idInteger

Returns ID of an item owner community.

Returns:

  • (Integer)

    ID of an item owner community.



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

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

#photo_idsArray

Returns IDs of additional photos.

Returns:

  • (Array)

    IDs of additional photos.



47
# File 'lib/vk/api/market/methods/edit.rb', line 47

attribute :photo_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int).constrained(max_size: 4).optional.default(nil)

#priceNumber

Returns Item price.

Returns:

  • (Number)

    Item price.



41
# File 'lib/vk/api/market/methods/edit.rb', line 41

attribute :price, API::Types::Coercible::Int