Class: Qonto::Model::Base

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

Direct Known Subclasses

BankAccount, Organization, Transaction

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



4
5
6
7
8
9
# File 'lib/qonto/model.rb', line 4

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