class Decidim::Meetings::Calendar::OrganizationCalendar
organization and delegates the work to the ‘ComponentCalendar` class.
ICalendar format. It finds the public meeting components for that
This class handles how to convert an organization meetings to the
def components
Finds the component meetings.
def components Decidim::PublicComponents.for(organization, manifest_name: :meetings) end
def events
Rails' cache.
Renders the meetings in an ICalendar format. It caches the results in
def events @events ||= components.map do |component| ComponentCalendar.new(component).events end.compact.join end