Method: Tractor::Model::Base#initialize
- Defined in:
- lib/tractor/model/base.rb
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
105 106 107 108 109 110 111 |
# File 'lib/tractor/model/base.rb', line 105 def initialize(attributes={}) @attribute_store = {} @association_store = {} attributes.each do |k,v| send("#{k}=", v) end end |