Sha256: fb07d12a67b3167debe89921fedb5c35390e6ca9d66d5611fc7864fdf6eee4c1

Contents?: true

Size: 819 Bytes

Versions: 11

Compression:

Stored size: 819 Bytes

Contents

require 'base64'
require 'json'
require 'net/http'
require 'openssl'

# The module TwoCaptcha contains all the code for the two_captcha gem.
# It acts as a safely namespace that isolates logic from TwoCaptcha from any
# project that uses it.
#
module TwoCaptcha
  # Instantiate TwoCaptcha API client. This is a shortcut to
  # TwoCaptcha::Client.new
  #
  def self.new(key, options = {})
    TwoCaptcha::Client.new(key, options)
  end

  # Base class of a model object returned by TwoCaptcha API.
  #
  class Model
    def initialize(values = {})
      values.each do |key, value|
        send("#{key}=", value) if respond_to?("#{key}=")
      end
    end
  end
end

require 'two_captcha/client'
require 'two_captcha/errors'
require 'two_captcha/http'
require 'two_captcha/models/captcha'
require 'two_captcha/version'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
two_captcha-1.9.0 lib/two_captcha.rb
two_captcha-1.8.0 lib/two_captcha.rb
two_captcha-1.7.0 lib/two_captcha.rb
two_captcha-1.6.0 lib/two_captcha.rb
two_captcha-1.5.0 lib/two_captcha.rb
two_captcha-1.4.0 lib/two_captcha.rb
two_captcha-1.3.2 lib/two_captcha.rb
two_captcha-1.3.1 lib/two_captcha.rb
two_captcha-1.3.0 lib/two_captcha.rb
two_captcha-1.2.0 lib/two_captcha.rb
two_captcha-1.1.0 lib/two_captcha.rb