Sha256: 09e83cb3b859d0360e8b04de6692c3406ad3e69563eb9f274747e3c51f95d434

Contents?: true

Size: 256 Bytes

Versions: 3

Compression:

Stored size: 256 Bytes

Contents

module AntiCaptcha
  class TurnstileSolution < AntiCaptcha::Solution
    attr_accessor :token

    def initialize(task_result = nil)
      super

      if task_result
        @token = task_result.api_result['solution']['token']
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
anti_captcha-2.6.1 lib/anti_captcha/models/turnstile_solution.rb
anti_captcha-2.6.0 lib/anti_captcha/models/turnstile_solution.rb
anti_captcha-2.5.0 lib/anti_captcha/models/turnstile_solution.rb