Class: BBNW::Meeting
- Inherits:
-
Object
- Object
- BBNW::Meeting
- Defined in:
- lib/adapters/base/meeting.rb
Instance Attribute Summary collapse
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
Instance Method Summary collapse
- #elapsed ⇒ Object
-
#initialize(message, start_time, end_time, account_for = true) ⇒ Meeting
constructor
A new instance of Meeting.
- #task_id ⇒ Object
- #timestamp ⇒ Object
- #total_seconds ⇒ Object
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(, start_time, end_time, account_for = true) @message = @start_time = start_time @end_time = end_time @account_for = account_for end |
Instance Attribute Details
#end_time ⇒ Object (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 |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/adapters/base/meeting.rb', line 5 def @message end |
#start_time ⇒ Object (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
#elapsed ⇒ Object
14 15 16 |
# File 'lib/adapters/base/meeting.rb', line 14 def elapsed @account_for ? (@end_time - @start_time) : 0 end |
#task_id ⇒ Object
26 27 28 |
# File 'lib/adapters/base/meeting.rb', line 26 def task_id nil end |
#timestamp ⇒ Object
22 23 24 |
# File 'lib/adapters/base/meeting.rb', line 22 def start_time end |
#total_seconds ⇒ Object
18 19 20 |
# File 'lib/adapters/base/meeting.rb', line 18 def total_seconds elapsed end |