Module: DynamodbRecord::Document::ClassMethods

Defined in:
lib/dynamodb_record/document.rb

Instance Method Summary collapse

Instance Method Details

#from_database(attrs) ⇒ Object



18
19
20
# File 'lib/dynamodb_record/document.rb', line 18

def from_database(attrs)
  new(attrs, true).tap { |r| r.new_record = false }
end