Sha256: b8047600772c1682d650df454ea62da67e91512448b1e56d452f480eacb10b45

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

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

module Vk
  module API
    class Leads < Vk::Schema::Namespace
      module Methods
        # Checks if the user can start the lead.
        class CheckUser < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'leads.checkUser'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :lead_id Lead ID.
          #   @option arguments [Integer] :test_result Value to be return in 'result' field when test mode is used.
          #   @option arguments [Integer] :age User age.
          #   @option arguments [String] :country User country code.
          #   @return [Leads::Methods::CheckUser]

          # @!group Arguments

          # @return [Integer] Lead ID.
          attribute :lead_id, API::Types::Coercible::Int.optional
          # @return [Integer] Value to be return in 'result' field when test mode is used.
          attribute :test_result, API::Types::Coercible::Int.optional
          # @return [Integer] User age.
          attribute :age, API::Types::Coercible::Int.optional
          # @return [String] User country code.
          attribute :country, 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/leads/methods/check_user.rb