Sha256: 60126618c73a10b8f9a9d08c15ab8133b3acae45be0520e6f59fee28505bf755

Contents?: true

Size: 776 Bytes

Versions: 20

Compression:

Stored size: 776 Bytes

Contents

module Vedeu

  module Events

    # Allows the storing of events.
    #
    class Repository < Vedeu::Repositories::Repository

      singleton_class.send(:alias_method, :events, :repository)

      class << self

        # Remove all stored models from the repository.
        #
        # @example
        #   Vedeu.events.reset!
        #
        # @return [Vedeu::Events::Repository]
        def reset!
          @events = new(Vedeu::Events::Collection)
        end
        alias_method :reset, :reset!

      end # Eigenclass

    end # Repository

  end # Events

  # Manipulate the repository of events.
  #
  # @example
  #   Vedeu.events
  #
  # @!method events
  # @return [Vedeu::Events::Repository]
  def_delegators Vedeu::Events::Repository, :events

end # Vedeu

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
vedeu-0.6.40 lib/vedeu/events/repository.rb
vedeu-0.6.39 lib/vedeu/events/repository.rb
vedeu-0.6.38 lib/vedeu/events/repository.rb
vedeu-0.6.37 lib/vedeu/events/repository.rb
vedeu-0.6.36 lib/vedeu/events/repository.rb
vedeu-0.6.35 lib/vedeu/events/repository.rb
vedeu-0.6.34 lib/vedeu/events/repository.rb
vedeu-0.6.33 lib/vedeu/events/repository.rb
vedeu-0.6.32 lib/vedeu/events/repository.rb
vedeu-0.6.31 lib/vedeu/events/repository.rb
vedeu-0.6.30 lib/vedeu/events/repository.rb
vedeu-0.6.29 lib/vedeu/events/repository.rb
vedeu-0.6.28 lib/vedeu/events/repository.rb
vedeu-0.6.27 lib/vedeu/events/repository.rb
vedeu-0.6.26 lib/vedeu/events/repository.rb
vedeu-0.6.25 lib/vedeu/events/repository.rb
vedeu-0.6.24 lib/vedeu/events/repository.rb
vedeu-0.6.23 lib/vedeu/events/repository.rb
vedeu-0.6.22 lib/vedeu/events/repository.rb
vedeu-0.6.21 lib/vedeu/events/repository.rb