class Notifu::Model::Sla

Public Instance Methods

timerange_values(now=Time.now) click to toggle source
# File lib/notifu/model/sla.rb, line 12
def timerange_values (now=Time.now)
  dow = now.wday - 1
  dow = 6 if dow < 0
  JSON.parse(self.timeranges)[dow]
end