Class: AntiCaptcha::Model
- Inherits:
-
Object
- Object
- AntiCaptcha::Model
- Defined in:
- lib/anti_captcha.rb
Overview
Base class of a model object returned by AntiCaptcha API.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(values = {}) ⇒ Model
constructor
A new instance of Model.
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 |