class Decidim::Meetings::Calendar::ComponentCalendar

format. It caches its result until the component is updated again.
This class handles how to convert a component meetings to the ICalendar

def events

Returns a String.

Rails' cache.
Renders the meetings in an ICalendar format. It caches the results in
def events
  filtered_meetings.map do |meeting|
    MeetingCalendar.new(meeting).events
  end.compact.join
end

def filtered_meetings

Returns a collection of Meetings filtered based on provided params.

Finds the component meetings.
def filtered_meetings
  meetings.not_hidden.published.except_withdrawn.ransack(@filters).result
end

def meetings

Returns a collection of Meetings.

Finds the component meetings.
def meetings
  Decidim::Meetings::Meeting.where(component: component)
end