Sha256: acc06eecf999c7149793d08d07252f1bb950a592f52774a6932df2b451c4baaf

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

module AntiCaptcha
  class HCaptchaSolution < AntiCaptcha::Solution
    attr_accessor :g_recaptcha_response # Deprecated
    attr_accessor :token


    def initialize(task_result = nil)
      super

      if task_result
        @token = task_result.api_result['solution']['gRecaptchaResponse']
        @g_recaptcha_response = token
      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/h_captcha_solution.rb
anti_captcha-2.4.0 lib/anti_captcha/models/h_captcha_solution.rb