Class: Knockapi::Models::ScheduleRepeatRule

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/schedule_repeat_rule.rb

Defined Under Namespace

Modules: Day, Frequency

Instance Attribute Summary collapse

Class Method 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(frequency:, _typename: nil, day_of_month: nil, days: nil, hours: nil, interval: nil, minutes: nil) ⇒ Object

The repeat rule for the schedule.



# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 50

Instance Attribute Details

#_typenameString?

The typename of the schema.



16
# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 16

optional :_typename, String, api_name: :__typename

#day_of_monthInteger?

The day of the month to repeat the schedule.



22
# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 22

optional :day_of_month, Integer, nil?: true

#daysArray<Symbol, Knockapi::Models::ScheduleRepeatRule::Day>?

The days of the week to repeat the schedule.



28
29
30
# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 28

optional :days,
-> { Knockapi::Internal::Type::ArrayOf[enum: Knockapi::ScheduleRepeatRule::Day] },
nil?: true

#frequencySymbol, Knockapi::Models::ScheduleRepeatRule::Frequency

The frequency of the schedule.



10
# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 10

required :frequency, enum: -> { Knockapi::ScheduleRepeatRule::Frequency }

#hoursInteger?

The hour of the day to repeat the schedule.



36
# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 36

optional :hours, Integer, nil?: true

#intervalInteger?

The interval of the schedule.



42
# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 42

optional :interval, Integer

#minutesInteger?

The minute of the hour to repeat the schedule.



48
# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 48

optional :minutes, Integer, nil?: true

Class Method Details

.valuesArray<Symbol>



# File 'lib/knockapi/models/schedule_repeat_rule.rb', line 78