Class: AntiCaptcha::Solution
- Defined in:
- lib/anti_captcha/models/solution.rb
Direct Known Subclasses
FunCaptchaSolution, GeetestSolution, HCaptchaSolution, ImageToTextSolution, RecaptchaV2Solution, RecaptchaV3Solution, TurnstileSolution
Instance Attribute Summary collapse
-
#api_response ⇒ Object
Returns the value of attribute api_response.
-
#task_result ⇒ Object
Returns the value of attribute task_result.
Instance Method Summary collapse
-
#initialize(task_result = nil) ⇒ Solution
constructor
A new instance of Solution.
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_response ⇒ Object
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_result ⇒ Object
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 |