Class: Decidim::Meetings::CalendarRenderer

Inherits:
Object
  • Object
show all
Defined in:
app/services/decidim/meetings/calendar_renderer.rb

Class Method Summary collapse

Class Method Details

.for(resource, filters = nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'app/services/decidim/meetings/calendar_renderer.rb', line 6

def self.for(resource, filters = nil)
  case resource
  when Decidim::Organization
    Calendar::OrganizationCalendar.for(resource, filters)
  when Decidim::Component
    Calendar::ComponentCalendar.for(resource, filters)
  when Decidim::Meetings::Meeting
    Calendar::MeetingCalendar.for(resource, filters)
  end
end