Class: TimeBoss::Calendars::Entry
- Inherits:
-
Struct
- Object
- Struct
- TimeBoss::Calendars::Entry
- Defined in:
- lib/timeboss/calendars.rb
Instance Attribute Summary collapse
-
#klass ⇒ Class<Calendar>
readonly
The class implementing this calendar.
-
#name ⇒ Symbol
readonly
Get the name of the calendar referenced in this entry.
Instance Method Summary collapse
-
#calendar ⇒ Calendar
Get an instance of the calendar referenced in this entry.
Instance Attribute Details
#klass ⇒ Class<Calendar>
The class implementing this calendar.
41 42 43 |
# File 'lib/timeboss/calendars.rb', line 41 def klass @klass end |
#name ⇒ Symbol
Get the name of the calendar referenced in this entry.
37 38 39 |
# File 'lib/timeboss/calendars.rb', line 37 def name @name end |
Instance Method Details
#calendar ⇒ Calendar
Get an instance of the calendar referenced in this entry.
47 48 49 |
# File 'lib/timeboss/calendars.rb', line 47 def calendar @_calendar ||= klass.new end |