Class: CAL::E

Inherits:
Object
  • Object
show all
Defined in:
lib/remind/calendar.rb

Overview

Calendar Event object

Instance Method Summary collapse

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

#whatObject

Calendar Event details



42
43
44
# File 'lib/remind/calendar.rb', line 42

def what
  @f.description
end

#whenObject

Calendar Event scheduling



46
47
48
# File 'lib/remind/calendar.rb', line 46

def when
  { begin: @f.dtstart, end: @f.dtend }
end

#whereObject

Calendar Event location



34
35
36
# File 'lib/remind/calendar.rb', line 34

def where
  @f.location
end

#whoObject

Calendar Event focus



38
39
40
# File 'lib/remind/calendar.rb', line 38

def who
  @f.summary
end