Module: Dirty::Attributes::InstanceMethods
- Defined in:
- lib/dirty/attributes.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
21 22 23 |
# File 'lib/dirty/attributes.rb', line 21 def attributes @attributes end |
Instance Method Details
#initialize ⇒ Object
23 24 25 26 27 28 |
# File 'lib/dirty/attributes.rb', line 23 def initialize @attributes = DirtyIndifferentHashy.new({}, true, self.class.attributes).tap do |hashy| dirty_map! hashy clean_up! end end |