Sha256: 2d7df0ee22ba35d79a2efc0f3a2ecc1ea8f77d37a3738ddfe4ee3694e4736169

Contents?: true

Size: 793 Bytes

Versions: 36

Compression:

Stored size: 793 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

36 entries across 36 versions & 1 rubygems

Version Path
vedeu-0.8.0 lib/vedeu/events/repository.rb
vedeu-0.7.4 lib/vedeu/events/repository.rb
vedeu-0.7.3 lib/vedeu/events/repository.rb
vedeu-0.7.2 lib/vedeu/events/repository.rb
vedeu-0.7.1 lib/vedeu/events/repository.rb
vedeu-0.7.0 lib/vedeu/events/repository.rb
vedeu-0.6.71 lib/vedeu/events/repository.rb
vedeu-0.6.70 lib/vedeu/events/repository.rb
vedeu-0.6.69 lib/vedeu/events/repository.rb
vedeu-0.6.68 lib/vedeu/events/repository.rb
vedeu-0.6.67 lib/vedeu/events/repository.rb
vedeu-0.6.66 lib/vedeu/events/repository.rb
vedeu-0.6.65 lib/vedeu/events/repository.rb
vedeu-0.6.64 lib/vedeu/events/repository.rb
vedeu-0.6.63 lib/vedeu/events/repository.rb
vedeu-0.6.62 lib/vedeu/events/repository.rb
vedeu-0.6.61 lib/vedeu/events/repository.rb
vedeu-0.6.60 lib/vedeu/events/repository.rb
vedeu-0.6.59 lib/vedeu/events/repository.rb
vedeu-0.6.58 lib/vedeu/events/repository.rb