Class: IceCube::Validations::MinuteOfHour::Validation
- Inherits:
-
Object
- Object
- IceCube::Validations::MinuteOfHour::Validation
- Includes:
- Lock
- Defined in:
- lib/ice_cube/validations/minute_of_hour.rb
Constant Summary
Constants included from Lock
Instance Attribute Summary collapse
-
#minute ⇒ Object
(also: #value)
readonly
Returns the value of attribute minute.
Instance Method Summary collapse
- #build_hash(builder) ⇒ Object
- #build_ical(builder) ⇒ Object
- #build_s(builder) ⇒ Object
-
#initialize(minute) ⇒ Validation
constructor
A new instance of Validation.
- #type ⇒ Object
Methods included from Lock
Constructor Details
#initialize(minute) ⇒ Validation
Returns a new instance of Validation.
27 28 29 |
# File 'lib/ice_cube/validations/minute_of_hour.rb', line 27 def initialize(minute) @minute = minute end |
Instance Attribute Details
#minute ⇒ Object (readonly) Also known as: value
Returns the value of attribute minute.
24 25 26 |
# File 'lib/ice_cube/validations/minute_of_hour.rb', line 24 def minute @minute end |
Instance Method Details
#build_hash(builder) ⇒ Object
39 40 41 |
# File 'lib/ice_cube/validations/minute_of_hour.rb', line 39 def build_hash(builder) builder.validations_array(:minute_of_hour) << minute end |
#build_ical(builder) ⇒ Object
43 44 45 |
# File 'lib/ice_cube/validations/minute_of_hour.rb', line 43 def build_ical(builder) builder['BYMINUTE'] << minute end |
#build_s(builder) ⇒ Object
31 32 33 |
# File 'lib/ice_cube/validations/minute_of_hour.rb', line 31 def build_s(builder) builder.piece(:minute_of_hour) << StringBuilder.nice_number(minute) end |
#type ⇒ Object
35 36 37 |
# File 'lib/ice_cube/validations/minute_of_hour.rb', line 35 def type :min end |