Class: Cadenya::Models::Agents::ScheduleCalendar
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(comment: nil, day_of_month: nil, day_of_week: nil, hour: nil, minute: nil, month: nil, second: nil) ⇒ Object
Calendar is a wall-clock rule. Empty field-list semantics:
- second/minute/hour: empty means [0] (top of the unit)
- day_of_month/month/day_of_week: empty means "any value" Fire times = cartesian
product across all fields.
|
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 46
|
Instance Attribute Details
10
|
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 10
optional :comment, String
|
15
16
17
|
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 15
optional :day_of_month,
-> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] },
api_name: :dayOfMonth
|
22
23
24
|
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 22
optional :day_of_week,
-> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] },
api_name: :dayOfWeek
|
29
|
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 29
optional :hour, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] }
|
34
|
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 34
optional :minute, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] }
|
39
|
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 39
optional :month, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] }
|
44
|
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 44
optional :second, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] }
|
Instance Method Details
#to_hash ⇒ {
66
|
# File 'sig/cadenya/models/agents/schedule_calendar.rbs', line 66
def to_hash: -> {
|