Sha256: 942adaaf1b031ec13bb19306baf9627f56e952b3020399ef737a25baafb144d7

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

module AntiCaptcha
  class NoCaptchaSolution < AntiCaptcha::Solution
    attr_accessor :g_recaptcha_response, :g_recaptcha_response_md5

    def initialize(task_result = nil)
      super

      if task_result
        @g_recaptcha_response     = task_result.api_result['solution']['gRecaptchaResponse']
        @g_recaptcha_response_md5 = task_result.api_result['solution']['gRecaptchaResponseMD5']
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
anti_captcha-2.3.0 lib/anti_captcha/models/no_captcha_solution.rb
anti_captcha-2.2.2 lib/anti_captcha/models/no_captcha_solution.rb
anti_captcha-2.2.1 lib/anti_captcha/models/no_captcha_solution.rb
anti_captcha-2.1.0 lib/anti_captcha/models/no_captcha_solution.rb