Class: AntiCaptcha::FunCaptchaSolution

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

Instance Attribute Summary collapse

Attributes inherited from Solution

#api_response, #task_result

Instance Method Summary collapse

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

#tokenObject

Returns the value of attribute token.



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

def token
  @token
end