Module: IceCube::Validations::HourlyInterval

Included in:
HourlyRule
Defined in:
lib/ice_cube/validations/hourly_interval.rb

Defined Under Namespace

Classes: Validation

Instance Method Summary collapse

Instance Method Details

#interval(interval) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/ice_cube/validations/hourly_interval.rb', line 5

def interval(interval)
  verify_alignment(interval, :hour, :interval) { |error| raise error }

  @interval = normalized_interval(interval)
  replace_validations_for(:interval, [Validation.new(@interval)])
  clobber_base_validations(:hour)
  self
end