Class: IceCube::Validations::ScheduleLock::Validation
- Inherits:
-
FixedValue
- Object
- FixedValue
- IceCube::Validations::ScheduleLock::Validation
- Defined in:
- lib/ice_cube/validations/schedule_lock.rb
Constant Summary
Constants inherited from FixedValue
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#build_hash(builder) ⇒ Object
no -op.
-
#build_ical(builder) ⇒ Object
no -op.
-
#build_s(builder) ⇒ Object
no -op.
- #dst_adjust? ⇒ Boolean
-
#initialize(type) ⇒ Validation
constructor
A new instance of Validation.
- #key ⇒ Object
Methods inherited from FixedValue
Constructor Details
#initialize(type) ⇒ Validation
Returns a new instance of Validation.
16 17 18 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 16 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
14 15 16 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 14 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
14 15 16 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 14 def value @value end |
Instance Method Details
#build_hash(builder) ⇒ Object
no -op
36 37 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 36 def build_hash(builder) end |
#build_ical(builder) ⇒ Object
no -op
40 41 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 40 def build_ical(builder) end |
#build_s(builder) ⇒ Object
no -op
32 33 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 32 def build_s(builder) end |
#dst_adjust? ⇒ Boolean
24 25 26 27 28 29 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 24 def dst_adjust? case @type when :sec, :min then false else true end end |
#key ⇒ Object
20 21 22 |
# File 'lib/ice_cube/validations/schedule_lock.rb', line 20 def key :base end |