Sha256: 86fc2c5652e9adb899e6d11cc555a2f7ac6d2ab382c80a91810a1068e926cb3c

Contents?: true

Size: 244 Bytes

Versions: 4

Compression:

Stored size: 244 Bytes

Contents

class Calendar
  def initialize(date)
    @date = date
  end

  def events
    event_strips.flatten.compact
  end

  def event_strips
    Event.event_strips_for_month(@date)
  end

  attr_reader :date
  delegate :month, :year, :to => :date
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-events-0.0.4 app/models/calendar.rb
refinerycms-events-0.0.3 app/models/calendar.rb
refinerycms-events-0.0.2 app/models/calendar.rb
refinerycms-events-0.0.1 app/models/calendar.rb