Class: SimplePerformer::TimeBlock
- Inherits:
-
Object
- Object
- SimplePerformer::TimeBlock
- Defined in:
- lib/simple_performr_rufus.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
Instance Method Summary collapse
-
#initialize(start_time, end_time, duration) ⇒ TimeBlock
constructor
A new instance of TimeBlock.
Constructor Details
#initialize(start_time, end_time, duration) ⇒ TimeBlock
Returns a new instance of TimeBlock.
9 10 11 12 13 |
# File 'lib/simple_performr_rufus.rb', line 9 def initialize(start_time, end_time, duration) @start_time=start_time @end_time=end_time @duration=duration end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
7 8 9 |
# File 'lib/simple_performr_rufus.rb', line 7 def duration @duration end |
#end_time ⇒ Object (readonly)
Returns the value of attribute end_time.
7 8 9 |
# File 'lib/simple_performr_rufus.rb', line 7 def end_time @end_time end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
7 8 9 |
# File 'lib/simple_performr_rufus.rb', line 7 def start_time @start_time end |