Class: Dsu::Views::EntryGroup::Shared::NoEntriesToDisplayForWeekOf

Inherits:
NoEntriesToDisplay show all
Defined in:
lib/dsu/views/entry_group/shared/no_entries_to_display_for_week_of.rb

Instance Method Summary collapse

Methods inherited from NoEntriesToDisplay

#render, #render_as_string

Methods included from Support::TimeFormatable

dd_mm_yyyy, formatted_time, mm_dd, mm_dd_yyyy, timezone_for, yyyy_mm_dd, yyyy_mm_dd_or_through_for

Methods included from Support::ColorThemable

apply_theme, #prompt_with_options

Constructor Details

#initialize(time:, options: {}) ⇒ NoEntriesToDisplayForWeekOf

Returns a new instance of NoEntriesToDisplayForWeekOf.



10
11
12
13
14
# File 'lib/dsu/views/entry_group/shared/no_entries_to_display_for_week_of.rb', line 10

def initialize(time:, options: {})
  super(times: [time.beginning_of_week, time.end_of_week], options: options)

  @time = time
end