Class: AntiCaptcha::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/anti_captcha.rb

Overview

Base class of a model object returned by AntiCaptcha API.

Direct Known Subclasses

Solution, TaskResult

Instance Method Summary collapse

Constructor Details

#initialize(values = {}) ⇒ Model

Returns a new instance of Model.



24
25
26
27
28
# File 'lib/anti_captcha.rb', line 24

def initialize(values = {})
  values.each do |key, value|
    send("#{key}=", value) if respond_to?("#{key}=")
  end
end