Module: Tyrion::Persistence::ClassMethods
- Defined in:
- lib/tyrion/persistence.rb
Instance Method Summary collapse
Instance Method Details
#create(*args) ⇒ Object
9 10 11 |
# File 'lib/tyrion/persistence.rb', line 9 def create(*args) new(*args).tap{ |doc| doc.save } end |
#delete_all ⇒ Object
13 14 15 16 |
# File 'lib/tyrion/persistence.rb', line 13 def delete_all storage[klass_name].clear save_storage(klass_name) end |