Class: AntiCaptcha::Solution

Inherits:
Model
  • Object
show all
Defined in:
lib/anti_captcha/models/solution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_result = nil) ⇒ Solution

Returns a new instance of Solution.



5
6
7
8
9
10
# File 'lib/anti_captcha/models/solution.rb', line 5

def initialize(task_result = nil)
  if task_result
    @api_response = task_result.api_result
    @task_result  = task_result
  end
end

Instance Attribute Details

#api_responseObject

Returns the value of attribute api_response.



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

def api_response
  @api_response
end

#task_resultObject

Returns the value of attribute task_result.



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

def task_result
  @task_result
end