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) ⇒ Object



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

def self.for(resource)
  case resource
  when Decidim::Organization
    Calendar::OrganizationCalendar.for(resource)
  when Decidim::Component
    Calendar::ComponentCalendar.for(resource)
  end
end