Class: Qonto::Model::Base
- Inherits:
-
Object
- Object
- Qonto::Model::Base
- Defined in:
- lib/qonto/model.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
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 |