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