Class: CalendarAssistant::CLI::LinterEventSetPresenter

Inherits:
EventSetPresenter
  • Object
show all
Defined in:
lib/calendar_assistant/cli/linter_event_set_presenter.rb

Instance Method Summary collapse

Methods inherited from EventSetPresenter

#description, #now!, #to_s

Constructor Details

#initialize(obj, config:, event_presenter_class: CLI::LinterEventPresenter) ⇒ LinterEventSetPresenter

Returns a new instance of LinterEventSetPresenter.



4
5
6
# File 'lib/calendar_assistant/cli/linter_event_set_presenter.rb', line 4

def initialize(obj, config:, event_presenter_class: CLI::LinterEventPresenter)
  super(obj, config: config, event_presenter_class: event_presenter_class)
end

Instance Method Details

#titleObject



8
9
10
11
12
13
14
# File 'lib/calendar_assistant/cli/linter_event_set_presenter.rb', line 8

def title
  rainbow.wrap(<<~OUT)
    #{event_repository.calendar.id}
    - looking for events that need attention
    - all times in #{event_repository.calendar.time_zone}
  OUT
end