Class: CAL::E
- Inherits:
-
Object
- Object
- CAL::E
- Defined in:
- lib/remind/calendar.rb
Overview
Calendar Event object
Instance Method Summary collapse
-
#initialize(f) ⇒ E
constructor
Calendar Event
f. -
#what ⇒ Object
Calendar Event details.
-
#when ⇒ Object
Calendar Event scheduling.
-
#where ⇒ Object
Calendar Event location.
-
#who ⇒ Object
Calendar Event focus.
Constructor Details
#initialize(f) ⇒ E
Calendar Event f.
30 31 32 |
# File 'lib/remind/calendar.rb', line 30 def initialize f @f = f end |
Instance Method Details
#what ⇒ Object
Calendar Event details
42 43 44 |
# File 'lib/remind/calendar.rb', line 42 def what @f.description end |
#when ⇒ Object
Calendar Event scheduling
46 47 48 |
# File 'lib/remind/calendar.rb', line 46 def when { begin: @f.dtstart, end: @f.dtend } end |
#where ⇒ Object
Calendar Event location
34 35 36 |
# File 'lib/remind/calendar.rb', line 34 def where @f.location end |
#who ⇒ Object
Calendar Event focus
38 39 40 |
# File 'lib/remind/calendar.rb', line 38 def who @f.summary end |