Class: TwoCaptcha::Model
- Inherits:
-
Object
- Object
- TwoCaptcha::Model
- Defined in:
- lib/two_captcha.rb
Overview
Base class of a model object returned by TwoCaptcha 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.
21 22 23 24 25 |
# File 'lib/two_captcha.rb', line 21 def initialize(values = {}) values.each do |key, value| send("#{key}=", value) if respond_to?("#{key}=") end end |