Sha256: d781dff06d79bb8f1c20f7bdd13de2afa386ce0c31242c6ffae971f21c31f68f

Contents?: true

Size: 786 Bytes

Versions: 12

Compression:

Stored size: 786 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Events

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

      class << self

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

      end # Eigenclass

    end # Repository

  end # Events

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

end # Vedeu

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.8.32 lib/vedeu/events/repository.rb
vedeu-0.8.31 lib/vedeu/events/repository.rb
vedeu-0.8.30 lib/vedeu/events/repository.rb
vedeu-0.8.29 lib/vedeu/events/repository.rb
vedeu-0.8.28 lib/vedeu/events/repository.rb
vedeu-0.8.27 lib/vedeu/events/repository.rb
vedeu-0.8.26 lib/vedeu/events/repository.rb
vedeu-0.8.25 lib/vedeu/events/repository.rb
vedeu-0.8.24 lib/vedeu/events/repository.rb
vedeu-0.8.23 lib/vedeu/events/repository.rb
vedeu-0.8.22 lib/vedeu/events/repository.rb
vedeu-0.8.21 lib/vedeu/events/repository.rb