Class: Vk::API::Wall::Methods::ReportPost
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Wall::Methods::ReportPost
- Defined in:
- lib/vk/api/wall/methods/report_post.rb
Overview
Reports (submits a complaint about) a post on a user wall or community wall.;
Arguments collapse
-
#owner_id ⇒ Integer
ID of the user or community that owns the wall.
-
#post_id ⇒ Integer
Post ID.
-
#reason ⇒ Integer
Reason for the complaint:; '0' – spam; '1' – child pornography; '2' – extremism; '3' – violence; '4' – drug propaganda; '5' – adult material; '6' – insult; abuse.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Wall::Methods::ReportPost
|
# File 'lib/vk/api/wall/methods/report_post.rb', line 15
|
Instance Method Details
#owner_id ⇒ Integer
Returns ID of the user or community that owns the wall.
25 |
# File 'lib/vk/api/wall/methods/report_post.rb', line 25 attribute :owner_id, API::Types::Coercible::Int |
#post_id ⇒ Integer
Returns Post ID.
27 |
# File 'lib/vk/api/wall/methods/report_post.rb', line 27 attribute :post_id, API::Types::Coercible::Int |
#reason ⇒ Integer
Returns Reason for the complaint:; '0' – spam; '1' – child pornography; '2' – extremism; '3' – violence; '4' – drug propaganda; '5' – adult material; '6' – insult; abuse.
29 |
# File 'lib/vk/api/wall/methods/report_post.rb', line 29 attribute :reason, API::Types::Coercible::Int.optional.default(nil) |