Class: AntiCaptcha::RecaptchaV3Solution
- Defined in:
- lib/anti_captcha/models/recaptcha_v3_solution.rb
Instance Attribute Summary collapse
-
#g_recaptcha_response ⇒ Object
Returns the value of attribute g_recaptcha_response.
-
#g_recaptcha_response_md5 ⇒ Object
Returns the value of attribute g_recaptcha_response_md5.
Attributes inherited from Solution
Instance Method Summary collapse
-
#initialize(task_result = nil) ⇒ RecaptchaV3Solution
constructor
A new instance of RecaptchaV3Solution.
Constructor Details
#initialize(task_result = nil) ⇒ RecaptchaV3Solution
Returns a new instance of RecaptchaV3Solution.
5 6 7 8 9 10 11 12 |
# File 'lib/anti_captcha/models/recaptcha_v3_solution.rb', line 5 def initialize(task_result = nil) super if task_result @g_recaptcha_response = task_result.api_result['solution']['gRecaptchaResponse'] @g_recaptcha_response_md5 = task_result.api_result['solution']['gRecaptchaResponseMD5'] end end |
Instance Attribute Details
#g_recaptcha_response ⇒ Object
Returns the value of attribute g_recaptcha_response.
3 4 5 |
# File 'lib/anti_captcha/models/recaptcha_v3_solution.rb', line 3 def g_recaptcha_response @g_recaptcha_response end |
#g_recaptcha_response_md5 ⇒ Object
Returns the value of attribute g_recaptcha_response_md5.
3 4 5 |
# File 'lib/anti_captcha/models/recaptcha_v3_solution.rb', line 3 def g_recaptcha_response_md5 @g_recaptcha_response_md5 end |