Class: Vk::API::Market::Methods::Report

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

Overview

Sends a complaint to the item.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    ID of an item owner community.

  • :item_id (Integer)

    Item 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.rb', line 15

Instance Method Details

#item_idInteger

Returns Item ID.

Returns:

  • (Integer)

    Item ID.



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

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

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