Method: Sohm::Model#initialize
- Defined in:
- lib/sohm.rb
#initialize(atts = {}) ⇒ Model
Initialize a model using a dictionary of attributes.
Example:
u = User.new(:name => "John")
916 917 918 919 920 921 |
# File 'lib/sohm.rb', line 916 def initialize(atts = {}) @attributes = {} @serial_attributes = {} @serial_attributes_changed = false update_attributes(atts) end |