Class: CronSpec::HourFactory

Inherits:
CronSpecificationFactory show all
Defined in:
lib/cron-spec/hour_factory.rb

Overview

Factory for constructing hour cron values from a cron specification.

Constant Summary collapse

HourLowerLimit =

The lower limit of a value representing an hour of the day.

0
HourUpperLimit =

The upper limit of a value representing an hour of the day.

23

Constants inherited from CronSpecificationFactory

CronSpecificationFactory::RangePattern, CronSpecificationFactory::SingleValuePattern, CronSpecificationFactory::StepPattern, CronSpecificationFactory::WildcardPattern

Instance Method Summary collapse

Methods inherited from CronSpecificationFactory

#parse

Constructor Details

#initializeHourFactory

Constructs a new HourFactory object.



16
17
18
19
20
# File 'lib/cron-spec/hour_factory.rb', line 16

def initialize
  super
  @lower_limit = HourLowerLimit
  @upper_limit = HourUpperLimit
end