Class: Period
- Inherits:
-
Object
- Object
- Period
- Defined in:
- app/models/period.rb
Overview
An interval of time.
Instance Attribute Summary (collapse)
-
- (DateTime) end
The time in which the Period ends.
-
- (DateTime) start
The time in which the Period starts.
Instance Method Summary (collapse)
-
- (Integer) lenght
The lenght of the Period in minutes.
Instance Attribute Details
- (DateTime) end
Returns the time in which the Period ends. Must be later than
start
.
8 9 10 |
# File 'app/models/period.rb', line 8 def end @end end |
- (DateTime) start
Returns the time in which the Period starts.
4 5 6 |
# File 'app/models/period.rb', line 4 def start @start end |
Instance Method Details
- (Integer) lenght
The lenght of the Period in minutes.
12 13 |
# File 'app/models/period.rb', line 12 def lenght end |