Class: NDFD::DWML::TimeLayout::ValidTime

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start, stop) ⇒ ValidTime


48
49
50
51
# File 'lib/ndfd/dwml/time_layout.rb', line 48

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


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

def start
  @start
end

#stopObject (readonly)

Returns the value of attribute stop


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

def stop
  @stop
end