Sha256: 78421a387b16b0447231195aee3e226221081e5087e7ed83c9efbb9c8cdf7748

Contents?: true

Size: 204 Bytes

Versions: 3

Compression:

Stored size: 204 Bytes

Contents

module Almanack
  class SimpleEventCollection
    def initialize(events)
      @events = events
    end

    def events_between(date_range)
      @events.map { |attrs| Event.new(attrs) }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
almanack-0.0.1.alpha3 lib/almanack/simple_event_collection.rb
almanack-0.0.1.alpha2 lib/almanack/simple_event_collection.rb
almanack-0.0.1.alpha1 lib/almanack/simple_event_collection.rb