Class: Syctask::Meeting
- Inherits:
-
Object
- Object
- Syctask::Meeting
- Defined in:
- lib/syctask/meeting.rb
Overview
Meeting represents a meeting containing the begin and end time, a title and an agenda consisting of tasks
Instance Attribute Summary collapse
-
#ends ⇒ Object
The end time of the meeting.
-
#starts ⇒ Object
The start time of the meeting.
-
#tasks ⇒ Object
The agenda or tasks of the meeting.
-
#title ⇒ Object
The title of the meeting.
Instance Method Summary collapse
-
#initialize(time, title = "", tasks = []) ⇒ Meeting
constructor
Sets the busy time for the schedule.
Constructor Details
#initialize(time, title = "", tasks = []) ⇒ Meeting
Sets the busy time for the schedule. The busy times have to be provided as hh:mm-hh:mm. Optionally a title for the busy time can be provided
20 21 22 23 24 25 |
# File 'lib/syctask/meeting.rb', line 20 def initialize(time, title="", tasks=[]) @starts = Syctask::Times.new(time[0..1]) @ends = Syctask::Times.new(time[2..3]) @title = title @tasks = tasks end |
Instance Attribute Details
#ends ⇒ Object
The end time of the meeting
12 13 14 |
# File 'lib/syctask/meeting.rb', line 12 def ends @ends end |
#starts ⇒ Object
The start time of the meeting
10 11 12 |
# File 'lib/syctask/meeting.rb', line 10 def starts @starts end |
#tasks ⇒ Object
The agenda or tasks of the meeting
16 17 18 |
# File 'lib/syctask/meeting.rb', line 16 def tasks @tasks end |
#title ⇒ Object
The title of the meeting
14 15 16 |
# File 'lib/syctask/meeting.rb', line 14 def title @title end |