Module: IceCube::Validations::Until

Extended by:
Deprecated
Included in:
IceCube::ValidatedRule
Defined in:
lib/ice_cube/validations/until.rb

Defined Under Namespace

Classes: Validation

Instance Method Summary collapse

Methods included from Deprecated

deprecated, deprecated_alias, schedule_options

Instance Method Details

#until(time) ⇒ Object



11
12
13
14
# File 'lib/ice_cube/validations/until.rb', line 11

def until(time)
  replace_validations_for(:until, time.nil? ? nil : [Validation.new(time)])
  self
end

#until_timeObject

Value reader for limit



6
7
8
# File 'lib/ice_cube/validations/until.rb', line 6

def until_time
  (arr = @validations[:until]) && (val = arr[0]) && val.time
end