Class: Handinger::Models::WorkerSchedule::Workers::WorkerSchedule::Cron

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/handinger/models/workers/worker_schedule.rbs

Defined Under Namespace

Modules: Budget

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

#initializeObject



143
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 143

def initialize: (

Instance Attribute Details

#budgetHandinger::Models::Workers::WorkerSchedule::Cron::budget

Returns the value of attribute budget.

Returns:

  • (Handinger::Models::Workers::WorkerSchedule::Cron::budget)


133
134
135
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 133

def budget
  @budget
end

#cronString

Returns the value of attribute cron.

Returns:

  • (String)


135
136
137
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 135

def cron
  @cron
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


131
132
133
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 131

def id
  @id
end

#inputString

Returns the value of attribute input.

Returns:

  • (String)


137
138
139
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 137

def input
  @input
end

#next_run_atTime

Returns the value of attribute next_run_at.

Returns:

  • (Time)


139
140
141
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 139

def next_run_at
  @next_run_at
end

#type:cron

Returns the value of attribute type.

Returns:

  • (:cron)


141
142
143
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 141

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


152
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 152

def to_hash: -> {