Class: SimplePerformer::TimeBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_performr_rufus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#durationObject (readonly)

Returns the value of attribute duration.



7
8
9
# File 'lib/simple_performr_rufus.rb', line 7

def duration
  @duration
end

#end_timeObject (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_timeObject (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