Class: CalendarAssistant::EventRepositoryFactory
- Inherits:
-
Object
- Object
- CalendarAssistant::EventRepositoryFactory
- Defined in:
- lib/calendar_assistant/event_repository_factory.rb
Class Method Summary collapse
Class Method Details
.new_event_repository(service, calendar_id, config: CalendarAssistant::Config.new, type: :base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/calendar_assistant/event_repository_factory.rb', line 3 def self.new_event_repository(service, calendar_id, config: CalendarAssistant::Config.new, type: :base) klass = case type when :location LocationEventRepository when :lint LintEventRepository else EventRepository end klass.new service, calendar_id, config: config end |