Class: Handinger::Models::Worker::Source

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

Defined Under Namespace

Modules: Type

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(id:, title:, type:, url:) ⇒ Object

Parameters:



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

Instance Attribute Details

#idString

Returns:

  • (String)


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

required :id, String

#titleString?

Returns:

  • (String, nil)


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

required :title, String, nil?: true

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



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

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

#urlString

Returns:

  • (String)


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

required :url, String