Sha256: ad61e14744766b73d5eec91539252837714679b540c501a719bd241811637459

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

module Vedeu

  # Allows the storing of events.
  class EventsRepository < Repository

    class << self

      # @return [Vedeu::EventsRepository]
      def events
        @events ||= reset!
      end
      alias_method :repository, :events

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

    end

  end # EventsRepository

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.25 lib/vedeu/repositories/repositories/events_repository.rb
vedeu-0.4.24 lib/vedeu/repositories/repositories/events_repository.rb