Sha256: b7627b65e826e3f7d575c9b1583a73edebfdfe3ad480553cf6e2e91094e56ca3

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

module AntiCaptcha
  class ImageToTextSolution < AntiCaptcha::Solution
    attr_accessor :url, :text

    def initialize(task_result = nil)
      super

      if task_result
        @url  = task_result.api_result['solution']['url']
        @text = task_result.api_result['solution']['text']
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
anti_captcha-2.5.0 lib/anti_captcha/models/image_to_text_solution.rb
anti_captcha-2.4.0 lib/anti_captcha/models/image_to_text_solution.rb
anti_captcha-2.3.0 lib/anti_captcha/models/image_to_text_solution.rb
anti_captcha-2.2.2 lib/anti_captcha/models/image_to_text_solution.rb
anti_captcha-2.2.1 lib/anti_captcha/models/image_to_text_solution.rb
anti_captcha-2.1.0 lib/anti_captcha/models/image_to_text_solution.rb