Class: Vk::API::Market::Methods::ReportComment

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

Overview

Sends a complaint to the item's comment.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of an item owner community.

  • :comment_id (Integer)

    Comment ID.

  • :reason (Integer)

    Complaint reason. Possible values:; *'0' — spam;; *'1' — child porn;; *'2' — extremism;; *'3' — violence;; *'4' — drugs propaganda;; *'5' — adult materials;; *'6' — insult.


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

Instance Method Details

#comment_idInteger

Returns Comment ID.

Returns:

  • (Integer)

    Comment ID.


27
# File 'lib/vk/api/market/methods/report_comment.rb', line 27

attribute :comment_id, API::Types::Coercible::Int

#owner_idInteger

Returns ID of an item owner community.

Returns:

  • (Integer)

    ID of an item owner community.


25
# File 'lib/vk/api/market/methods/report_comment.rb', line 25

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

#reasonInteger

Returns Complaint reason. Possible values:; *'0' — spam;; *'1' — child porn;; *'2' — extremism;; *'3' — violence;; *'4' — drugs propaganda;; *'5' — adult materials;; *'6' — insult.

Returns:

  • (Integer)

    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_comment.rb', line 29

attribute :reason, API::Types::Coercible::Int.enum(0, 1, 2, 3, 4, 5, 6)