Module: ADIWG::Mdtranslator::Writers::SbJson::Hours

Defined in:
lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_hours.rb

Class Method Summary collapse

Class Method Details

.build(aHours) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_hours.rb', line 13

def self.build(aHours)

   hours = ''

   aHours.each do |hour|
      hours += hour + '; '
   end

   # clean off last semicolon
   if hours.length > 2
      hours = hours[0...-2]
   end

   hours

end