Module: SimpleObjects::Base
- Includes:
- Attributes, Serialization
- Defined in:
- lib/simple_objects/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Serialization
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/simple_objects/base.rb', line 9 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(attributes = {}) ⇒ Object
13 14 15 |
# File 'lib/simple_objects/base.rb', line 13 def initialize(attributes = {}) mass_assign(attributes) end |