Class: Vk::API::Market::Methods::Add
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Market::Methods::Add
- Defined in:
- lib/vk/api/market/methods/add.rb
Overview
Ads a new item to the market.
Arguments collapse
-
#category_id ⇒ Integer
Item category ID.
-
#deleted ⇒ Boolean
Item status ('1' — deleted, '0' — not deleted).
-
#description ⇒ String
Item description.
-
#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::Add constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#category_id ⇒ Integer
Returns Item category ID.
36 |
# File 'lib/vk/api/market/methods/add.rb', line 36 attribute :category_id, API::Types::Coercible::Int |
#deleted ⇒ Boolean
Returns Item status ('1' — deleted, '0' — not deleted).
40 |
# File 'lib/vk/api/market/methods/add.rb', line 40 attribute :deleted, API::Types::Form::Bool.optional.default(nil) |
#description ⇒ String
Returns Item description.
34 |
# File 'lib/vk/api/market/methods/add.rb', line 34 attribute :description, API::Types::Coercible::String |
#main_photo_id ⇒ Integer
Returns Cover photo ID.
42 |
# File 'lib/vk/api/market/methods/add.rb', line 42 attribute :main_photo_id, API::Types::Coercible::Int |
#name ⇒ String
Returns Item name.
32 |
# File 'lib/vk/api/market/methods/add.rb', line 32 attribute :name, API::Types::Coercible::String |
#owner_id ⇒ Integer
Returns ID of an item owner community.
30 |
# File 'lib/vk/api/market/methods/add.rb', line 30 attribute :owner_id, API::Types::Coercible::Int |