Class: Vk::API::Market::Methods::Report
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Market::Methods::Report
- Defined in:
- lib/vk/api/market/methods/report.rb
Overview
Sends a complaint to the item.
Arguments collapse
-
#item_id ⇒ Integer
Item ID.
-
#owner_id ⇒ Integer
ID of an item owner community.
-
#reason ⇒ Integer
Complaint reason.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Market::Methods::Report constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Market::Methods::Report
|
# File 'lib/vk/api/market/methods/report.rb', line 15
|
Instance Method Details
#item_id ⇒ Integer
Returns Item ID.
27 |
# File 'lib/vk/api/market/methods/report.rb', line 27 attribute :item_id, API::Types::Coercible::Int |
#owner_id ⇒ Integer
Returns ID of an item owner community.
25 |
# File 'lib/vk/api/market/methods/report.rb', line 25 attribute :owner_id, API::Types::Coercible::Int |
#reason ⇒ Integer
Returns Complaint reason. Possible values:; *'0' — spam;; *'1' — child porn;; *'2' — extremism;; *'3' — violence;; *'4' — drugs propaganda;; *'5' — adult materials;; *'6' — insult.
29 |
# File 'lib/vk/api/market/methods/report.rb', line 29 attribute :reason, API::Types::Coercible::Int.enum(0, 1, 2, 3, 4, 5, 6) |