Class: Ethikdo::BaseModel
- Inherits:
-
Object
- Object
- Ethikdo::BaseModel
- Defined in:
- lib/ethikdo/base_model.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ BaseModel
constructor
A new instance of BaseModel.
Constructor Details
#initialize(attributes = {}) ⇒ BaseModel
Returns a new instance of BaseModel.
6 7 8 9 10 11 |
# File 'lib/ethikdo/base_model.rb', line 6 def initialize(attributes = {}) attributes.each do |key, value| m = "#{key}=".to_sym send(m, value) if respond_to?(m) end end |