Method: Dynamoid::Persistence#dump
- Defined in:
- lib/dynamoid/persistence.rb
#dump ⇒ Object
Dump this object’s attributes into hash form, fit to be persisted into the datastore.
370 371 372 373 374 375 376 |
# File 'lib/dynamoid/persistence.rb', line 370 def dump Hash.new.tap do |hash| self.class.attributes.each do |attribute, | hash[attribute] = dump_field(self.read_attribute(attribute), ) end end end |