Class: AntiCaptcha::TurnstileSolution
- Defined in:
- lib/anti_captcha/models/turnstile_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) ⇒ TurnstileSolution
constructor
A new instance of TurnstileSolution.
Constructor Details
#initialize(task_result = nil) ⇒ TurnstileSolution
Returns a new instance of TurnstileSolution.
5 6 7 8 9 10 11 |
# File 'lib/anti_captcha/models/turnstile_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/turnstile_solution.rb', line 3 def token @token end |