Class: Period

Inherits:
Object
  • Object
show all
Defined in:
app/models/period.rb

Overview

An interval of time.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (DateTime) end

Returns the time in which the Period ends. Must be later than start.

Returns:

  • (DateTime)

    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.

Returns:

  • (DateTime)

    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.

Returns:

  • (Integer)

    the lenght of the Period in minutes.



12
13
# File 'app/models/period.rb', line 12

def lenght
end