Class: Syctask::Meeting

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#endsObject

The end time of the meeting



12
13
14
# File 'lib/syctask/meeting.rb', line 12

def ends
  @ends
end

#startsObject

The start time of the meeting



10
11
12
# File 'lib/syctask/meeting.rb', line 10

def starts
  @starts
end

#tasksObject

The agenda or tasks of the meeting



16
17
18
# File 'lib/syctask/meeting.rb', line 16

def tasks
  @tasks
end

#titleObject

The title of the meeting



14
15
16
# File 'lib/syctask/meeting.rb', line 14

def title
  @title
end