Module: Aqua::Store::CouchDB::StorageMethods::ClassMethods
Public Visibility
Public Instance Method Summary
#create(hash) |
Initializes a new storage document and saves it without raising any errors. Returns: Aqua::Storage |
---|---|
#create!(hash) |
Initializes a new storage document and saves it raising any errors. Returns: Aqua::Storage |
Public Instance Method Details
create
Initializes a new storage document and saves it without raising any errors
[View source]
29 30 31 32 |
# File 'lib/aqua/store/couch_db/storage_methods.rb', line 29 def create( hash ) doc = new( hash ) doc.save end |
create!
Initializes a new storage document and saves it raising any errors.
[View source]
41 42 43 44 |
# File 'lib/aqua/store/couch_db/storage_methods.rb', line 41 def create!( hash ) doc = new( hash ) doc.save! end |