Sha256: 3f1fb5b8c94aa204d7b49bb4c49d3b27827c02ffb67f833b4e9fcaee9cfe7365

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 Bytes

Contents

class EventCalendar::Event
  attr_accessor :held_on, :name
  def initialize(date = Date.today)
    @held_on = date
  end

  def self.all
    []
  end

  def self.fetch_events(calendar)
    all.select do |event|
      (calendar.start_on .. calendar.end_on).include?(event.held_on)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event_cal-1.0 lib/event_calendar/event.rb