Class: TwoCaptcha::Model

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

Overview

Base class of a model object returned by TwoCaptcha API.

Direct Known Subclasses

Captcha

Instance Method Summary collapse

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