Module: RealEx::Initializer

Included in:
Address, Card, Response, Response::CardIssuer, Transaction
Defined in:
lib/real_ex/initializer.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/real_ex/initializer.rb', line 4

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#initialize(setters = {}) ⇒ Object



20
21
22
# File 'lib/real_ex/initializer.rb', line 20

def initialize(setters = {})
  setters.each { |k, v| send("#{k}=", v) } unless setters.nil?
end