Class: Cadenya::Models::Agents::ScheduleCalendar

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/agents/schedule_calendar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 46

Instance Attribute Details

#commentString?

Returns:

  • (String, nil)


10
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 10

optional :comment, String

#day_of_monthArray<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_weekArray<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

#hourArray<Cadenya::Models::Agents::ScheduleRange>?



29
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 29

optional :hour, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] }

#minuteArray<Cadenya::Models::Agents::ScheduleRange>?



34
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 34

optional :minute, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] }

#monthArray<Cadenya::Models::Agents::ScheduleRange>?



39
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 39

optional :month, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] }

#secondArray<Cadenya::Models::Agents::ScheduleRange>?



44
# File 'lib/cadenya/models/agents/schedule_calendar.rb', line 44

optional :second, -> { Cadenya::Internal::Type::ArrayOf[Cadenya::Agents::ScheduleRange] }