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