class Cronex::HoursDescription

Public Instance Methods

between_description_format(expression) click to toggle source
# File lib/cronex/description/hours.rb, line 11
def between_description_format(expression)
  resources.get('between_x_and_y')
end
description_format(expression) click to toggle source
# File lib/cronex/description/hours.rb, line 15
def description_format(expression)
  resources.get('at_x')
end
interval_description_format(expression) click to toggle source
# File lib/cronex/description/hours.rb, line 7
def interval_description_format(expression)
  format(resources.get('every_x') + ' ' + plural(expression, resources.get('hour'), resources.get('hours')), expression)
end
single_item_description(expression, timezone = 'UTC') click to toggle source
# File lib/cronex/description/hours.rb, line 3
def single_item_description(expression, timezone = 'UTC')
  Cronex::Utils.format_time(expression, '0', '', timezone)
end
starting_description_format(expression) click to toggle source
# File lib/cronex/description/hours.rb, line 19
def starting_description_format(expression)
  resources.get('starting') + ' ' + description_format(expression)
end