Module: PDC::Resource::AttributeModifier::ClassMethods
- Defined in:
- lib/pdc/resource/attribute_modifier.rb
Instance Method Summary collapse
- #attribute_modifications ⇒ Object
-
#attribute_rename(from, to) ⇒ Object
rename an existing attribute ‘from` to `to` NOTE from must exist and to must not.
Instance Method Details
#attribute_modifications ⇒ Object
14 15 16 |
# File 'lib/pdc/resource/attribute_modifier.rb', line 14 def attribute_modifications @attribute_modifications ||= [] end |
#attribute_rename(from, to) ⇒ Object
rename an existing attribute ‘from` to `to` NOTE from must exist and to must not
10 11 12 |
# File 'lib/pdc/resource/attribute_modifier.rb', line 10 def attribute_rename(from, to) attribute_modifications << [:rename, from, to] end |