Class: Vk::API::Market::Methods::Edit
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Market::Methods::Edit
- Defined in:
- lib/vk/api/market/methods/edit.rb
Overview
Edits an item.
Arguments collapse
-
#category_id ⇒ Integer
Item category ID.
-
#deleted ⇒ Boolean
Item status ('1' — deleted, '0' — not deleted).
-
#description ⇒ String
Item description.
-
#item_id ⇒ Integer
Item ID.
-
#main_photo_id ⇒ Integer
Cover photo ID.
-
#name ⇒ String
Item name.
-
#owner_id ⇒ Integer
ID of an item owner community.
-
#photo_ids ⇒ Array
IDs of additional photos.
-
#price ⇒ Number
Item price.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Market::Methods::Edit constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#category_id ⇒ Integer
Returns Item category ID.
39 |
# File 'lib/vk/api/market/methods/edit.rb', line 39 attribute :category_id, API::Types::Coercible::Int |
#deleted ⇒ Boolean
Returns 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) |
#description ⇒ String
Returns Item description.
37 |
# File 'lib/vk/api/market/methods/edit.rb', line 37 attribute :description, API::Types::Coercible::String |
#item_id ⇒ Integer
Returns Item ID.
33 |
# File 'lib/vk/api/market/methods/edit.rb', line 33 attribute :item_id, API::Types::Coercible::Int |
#main_photo_id ⇒ Integer
Returns Cover photo ID.
45 |
# File 'lib/vk/api/market/methods/edit.rb', line 45 attribute :main_photo_id, API::Types::Coercible::Int |
#name ⇒ String
Returns Item name.
35 |
# File 'lib/vk/api/market/methods/edit.rb', line 35 attribute :name, API::Types::Coercible::String |
#owner_id ⇒ Integer
Returns ID of an item owner community.
31 |
# File 'lib/vk/api/market/methods/edit.rb', line 31 attribute :owner_id, API::Types::Coercible::Int |