Class: Dsu::Views::EntryGroup::Shared::NoEntriesToDisplayForMonthOf

Inherits:
NoEntriesToDisplay show all
Defined in:
lib/dsu/views/entry_group/shared/no_entries_to_display_for_month_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: {}) ⇒ NoEntriesToDisplayForMonthOf

Returns a new instance of NoEntriesToDisplayForMonthOf.



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

def initialize(time:, options: {})
  super(times: [time.beginning_of_month, time.end_of_month], options: options)

  @time = time
end