Class: DWML::TimeLayout::ValidTime
- Inherits:
-
Object
- Object
- DWML::TimeLayout::ValidTime
- Defined in:
- lib/dwml/time_layout.rb
Instance Attribute Summary collapse
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#stop ⇒ Object
readonly
Returns the value of attribute stop.
Instance Method Summary collapse
-
#initialize(start, stop) ⇒ ValidTime
constructor
A new instance of ValidTime.
Constructor Details
#initialize(start, stop) ⇒ ValidTime
Returns a new instance of ValidTime.
47 48 49 50 |
# File 'lib/dwml/time_layout.rb', line 47 def initialize(start, stop) @start = Time.zone.parse(start.to_s) @stop = Time.zone.parse(stop.to_s) end |
Instance Attribute Details
#start ⇒ Object (readonly)
Returns the value of attribute start.
45 46 47 |
# File 'lib/dwml/time_layout.rb', line 45 def start @start end |
#stop ⇒ Object (readonly)
Returns the value of attribute stop.
45 46 47 |
# File 'lib/dwml/time_layout.rb', line 45 def stop @stop end |