Class: Vedeu::Events::Repository

Inherits:
Repository show all
Defined in:
lib/vedeu/events/repository.rb

Overview

Allows the storing of events.

Class Method Summary collapse

Methods included from Store

#each, #empty?, #exists?, #in_memory, #registered, #reset, #size, #storage

Methods included from Registerable

included

Methods included from Common

#demodulize, #present?, #snake_case

Constructor Details

This class inherits a constructor from Vedeu::Repository

Class Method Details

.reset!Vedeu::Events::Repository Also known as: reset

Remove all stored models from the repository.

Examples:

Vedeu.events.reset!

Returns:



19
20
21
# File 'lib/vedeu/events/repository.rb', line 19

def reset!
  @events = new(Vedeu::Events::Collection)
end