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