Sha256: e7c3ecf254f0348c80a763fa952ab3ca04deb531e3a22f85bcf8f122fac5bed2

Contents?: true

Size: 446 Bytes

Versions: 19

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    class CalendarRenderer
      def self.for(resource)
        case resource
        when Decidim::Organization
          Calendar::OrganizationCalendar.for(resource)
        when Decidim::Component
          Calendar::ComponentCalendar.for(resource)
        when Decidim::Meetings::Meeting
          Calendar::MeetingCalendar.for(resource)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-meetings-0.26.10 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.9 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.8 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.7 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.5 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.4 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.3 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.2 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.1 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.0 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.0.rc2 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.26.0.rc1 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.25.2 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.25.1 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.25.0 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.25.0.rc4 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.25.0.rc3 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.25.0.rc2 app/services/decidim/meetings/calendar_renderer.rb
decidim-meetings-0.25.0.rc1 app/services/decidim/meetings/calendar_renderer.rb