Class: AntiCaptcha::TurnstileSolution

Inherits:
Solution show all
Defined in:
lib/anti_captcha/models/turnstile_solution.rb

Instance Attribute Summary collapse

Attributes inherited from Solution

#api_response, #task_result

Instance Method Summary collapse

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

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'lib/anti_captcha/models/turnstile_solution.rb', line 3

def token
  @token
end