Class: Vk::API::Photos::Methods::Report

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

Overview

Reports (submits a complaint about) a photo.;

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of the user or community that owns the photo.

  • :photo_id (Integer)

    Photo 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


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

Instance Method Details

#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.rb', line 25

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

#photo_idInteger

Returns Photo ID.

Returns:

  • (Integer)

    Photo ID.


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

attribute :photo_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.rb', line 29

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