Class: Google::Apis::PartnersV2::RecaptchaChallenge

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb

Overview

reCaptcha challenge info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RecaptchaChallenge

Returns a new instance of RecaptchaChallenge



1895
1896
1897
# File 'generated/google/apis/partners_v2/classes.rb', line 1895

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

The ID of the reCaptcha challenge. Corresponds to the JSON property id

Returns:

  • (String)


1888
1889
1890
# File 'generated/google/apis/partners_v2/classes.rb', line 1888

def id
  @id
end

#responseString

The response to the reCaptcha challenge. Corresponds to the JSON property response

Returns:

  • (String)


1893
1894
1895
# File 'generated/google/apis/partners_v2/classes.rb', line 1893

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1900
1901
1902
1903
# File 'generated/google/apis/partners_v2/classes.rb', line 1900

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @response = args[:response] if args.key?(:response)
end