Class: Cadenya::Models::Agents::ScheduleCalendar
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::Agents::ScheduleCalendar
- Defined in:
- lib/cadenya/models/agents/schedule_calendar.rb
Instance Attribute Summary collapse
- #comment ⇒ String?
- #day_of_month ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
- #day_of_week ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
- #hour ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
- #minute ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
- #month ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
- #second ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
Instance Method Summary collapse
-
#initialize(comment: nil, day_of_month: nil, day_of_week: nil, hour: nil, minute: nil, month: nil, second: nil) ⇒ Object
constructor
Calendar is a wall-clock rule.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], 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
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#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
#comment ⇒ String?
10 |
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 10 optional :comment, String |
#day_of_month ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
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 |
#day_of_week ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
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 |
#hour ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
29 |
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 29 optional :hour, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] } |
#minute ⇒ Array<Cadenya::Models::Agents::ScheduleRange>?
34 |
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 34 optional :minute, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] } |