class Decidim::Meetings::Calendar::MeetingCalendar

This class generates a ICalendar entry for an individual meeting.
format. It caches its result until the meeting is updated again.
This class handles how to convert a single meeting to the ICalendar

def cache_key

Returns a String.

Defines the cache key for the given component.
def cache_key
  "meetings-calendar-meeting-#{meeting.id}-#{meeting.updated_at.to_i}"
end

def events

Returns a String.

Rails' cache.
Renders the meeting in an ICalendar format. It caches the results in
def events
  Rails.cache.fetch(cache_key) do
    MeetingToEvent.new(meeting).to_ical
  end
end