Class: Handinger::Models::Worker::Output

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/handinger/models/worker.rb

Defined Under Namespace

Modules: Role, Status, Type Classes: Content

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Handinger::Internal::Type::BaseModel

Instance Attribute Details

#contentArray<Handinger::Models::Worker::Output::Content>



140
# File 'lib/handinger/models/worker.rb', line 140

required :content, -> { Handinger::Internal::Type::ArrayOf[Handinger::Worker::Output::Content] }

#idString

Returns:

  • (String)


135
# File 'lib/handinger/models/worker.rb', line 135

required :id, String

#roleSymbol, Handinger::Models::Worker::Output::Role



145
# File 'lib/handinger/models/worker.rb', line 145

required :role, enum: -> { Handinger::Worker::Output::Role }

#statusSymbol, Handinger::Models::Worker::Output::Status



150
# File 'lib/handinger/models/worker.rb', line 150

required :status, enum: -> { Handinger::Worker::Output::Status }

#typeSymbol, Handinger::Models::Worker::Output::Type



155
# File 'lib/handinger/models/worker.rb', line 155

required :type, enum: -> { Handinger::Worker::Output::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/handinger/models/worker.rb', line 185