Class: Vk::API::Photos::Methods::ReportComment

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

Overview

Reports (submits a complaint about) a comment on a photo.;

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of the user or community that owns the photo.

  • :comment_id (Integer)

    ID of the comment being reported.

  • :reason (Integer)

    Reason for the complaint:; '0' – spam; '1' – child pornography; '2' – extremism; '3' – violence; '4' – drug propaganda; '5' – adult material; '6' – insult; abuse



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

Instance Method Details

#comment_idInteger

Returns ID of the comment being reported.

Returns:

  • (Integer)

    ID of the comment being reported.



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

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

#owner_idInteger

Returns ID of the user or community that owns the photo.

Returns:

  • (Integer)

    ID of the user or community that owns the photo.



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

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

#reasonInteger

Returns Reason for the complaint:; '0' – spam; '1' – child pornography; '2' – extremism; '3' – violence; '4' – drug propaganda; '5' – adult material; '6' – insult; abuse.

Returns:

  • (Integer)

    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/photos/methods/report_comment.rb', line 29

attribute :reason, API::Types::Coercible::Int.optional.default(nil)