Sha256: 4c0d1ddfde7e5e1f0e7e19f7bbc50b136c67adc9df5a4d600776a1594cc64e40

Contents?: true

Size: 1.39 KB

Versions: 1

Compression:

Stored size: 1.39 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Users < Vk::Schema::Namespace
      module Methods
        # Reports (submits a complain about) a user.;
        class Report < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'users.report'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :user_id ID of the user about whom a complaint is being made.
          #   @option arguments [String] :type Type of complaint:; 'porn' – pornography; 'spam' – spamming; 'insult' – abusive behavior; 'advertisment' – disruptive advertisements
          #   @option arguments [String] :comment Comment describing the complaint.
          #   @return [Users::Methods::Report]

          # @!group Arguments

          # @return [Integer] ID of the user about whom a complaint is being made.
          attribute :user_id, API::Types::Coercible::Int.optional
          # @return [String] Type of complaint:; 'porn' – pornography; 'spam' – spamming; 'insult' – abusive behavior; 'advertisment' – disruptive advertisements
          attribute :type, API::Types::Coercible::String.optional
          # @return [String] Comment describing the complaint.
          attribute :comment, API::Types::Coercible::String.optional
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/users/methods/report.rb