Sha256: 7169b635f6d82cbc85cdaf50778c586817a073d34169d8db95daeca4f995a943

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module AntiCaptcha
  class RecaptchaV2Solution < 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

2 entries across 2 versions & 1 rubygems

Version Path
anti_captcha-2.5.0 lib/anti_captcha/models/recaptcha_v2_solution.rb
anti_captcha-2.4.0 lib/anti_captcha/models/recaptcha_v2_solution.rb