Class: IceCube::Validations::SecondOfMinute::Validation
- Inherits:
-
FixedValue
- Object
- FixedValue
- IceCube::Validations::SecondOfMinute::Validation
- Defined in:
- lib/ice_cube/validations/second_of_minute.rb
Constant Summary
Constants inherited from FixedValue
Instance Attribute Summary collapse
-
#second ⇒ Object
(also: #value)
readonly
Returns the value of attribute second.
Instance Method Summary collapse
- #build_hash(builder) ⇒ Object
- #build_ical(builder) ⇒ Object
- #build_s(builder) ⇒ Object
- #dst_adjust? ⇒ Boolean
-
#initialize(second) ⇒ Validation
constructor
A new instance of Validation.
- #key ⇒ Object
- #type ⇒ Object
Methods inherited from FixedValue
Constructor Details
#initialize(second) ⇒ Validation
Returns a new instance of Validation.
30 31 32 |
# File 'lib/ice_cube/validations/second_of_minute.rb', line 30 def initialize(second) @second = second end |
Instance Attribute Details
#second ⇒ Object (readonly) Also known as: value
Returns the value of attribute second.
27 28 29 |
# File 'lib/ice_cube/validations/second_of_minute.rb', line 27 def second @second end |
Instance Method Details
#build_hash(builder) ⇒ Object
50 51 52 |
# File 'lib/ice_cube/validations/second_of_minute.rb', line 50 def build_hash(builder) builder.validations_array(:second_of_minute) << second end |
#build_ical(builder) ⇒ Object
54 55 56 |
# File 'lib/ice_cube/validations/second_of_minute.rb', line 54 def build_ical(builder) builder["BYSECOND"] << second end |
#build_s(builder) ⇒ Object
46 47 48 |
# File 'lib/ice_cube/validations/second_of_minute.rb', line 46 def build_s(builder) builder.piece(:second_of_minute) << StringBuilder.nice_number(second) end |
#dst_adjust? ⇒ Boolean
42 43 44 |
# File 'lib/ice_cube/validations/second_of_minute.rb', line 42 def dst_adjust? false end |
#key ⇒ Object
34 35 36 |
# File 'lib/ice_cube/validations/second_of_minute.rb', line 34 def key :second_of_minute end |
#type ⇒ Object
38 39 40 |
# File 'lib/ice_cube/validations/second_of_minute.rb', line 38 def type :sec end |