Class: Handinger::Models::WorkerSchedule::Workers::WorkerSchedule::Delayed

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



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

def initialize: (

Instance Attribute Details

#budgetHandinger::Models::Workers::WorkerSchedule::Delayed::budget

Returns the value of attribute budget.

Returns:

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


78
79
80
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 78

def budget
  @budget
end

#delay_in_secondsInteger

Returns the value of attribute delay_in_seconds.

Returns:

  • (Integer)


80
81
82
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 80

def delay_in_seconds
  @delay_in_seconds
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


76
77
78
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 76

def id
  @id
end

#inputString

Returns the value of attribute input.

Returns:

  • (String)


82
83
84
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 82

def input
  @input
end

#next_run_atTime

Returns the value of attribute next_run_at.

Returns:

  • (Time)


84
85
86
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 84

def next_run_at
  @next_run_at
end

#type:delayed

Returns the value of attribute type.

Returns:

  • (:delayed)


86
87
88
# File 'sig/handinger/models/workers/worker_schedule.rbs', line 86

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {