Class: DWML::TimeLayout::ValidTime

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#startObject (readonly)

Returns the value of attribute start.



45
46
47
# File 'lib/dwml/time_layout.rb', line 45

def start
  @start
end

#stopObject (readonly)

Returns the value of attribute stop.



45
46
47
# File 'lib/dwml/time_layout.rb', line 45

def stop
  @stop
end