Class: BBNW::Meeting

Inherits:
Object
  • Object
show all
Defined in:
lib/adapters/base/meeting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, start_time, end_time, account_for = true) ⇒ Meeting

Returns a new instance of Meeting.



7
8
9
10
11
12
# File 'lib/adapters/base/meeting.rb', line 7

def initialize(message, start_time, end_time,  = true)
  @message     = message
  @start_time  = start_time
  @end_time    = end_time
  @account_for = 
end

Instance Attribute Details

#end_timeObject (readonly)

Returns the value of attribute end_time.



5
6
7
# File 'lib/adapters/base/meeting.rb', line 5

def end_time
  @end_time
end

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/adapters/base/meeting.rb', line 5

def message
  @message
end

#start_timeObject (readonly)

Returns the value of attribute start_time.



5
6
7
# File 'lib/adapters/base/meeting.rb', line 5

def start_time
  @start_time
end

Instance Method Details

#elapsedObject



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

def elapsed
  @account_for ? (@end_time - @start_time) : 0
end

#task_idObject



26
27
28
# File 'lib/adapters/base/meeting.rb', line 26

def task_id
  nil
end

#timestampObject



22
23
24
# File 'lib/adapters/base/meeting.rb', line 22

def timestamp
  start_time
end

#total_secondsObject



18
19
20
# File 'lib/adapters/base/meeting.rb', line 18

def total_seconds
  elapsed
end