Class: Handinger::Models::Worker::File

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

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:, created_at:, error:, files:, incomplete_details:, messages:, metadata:, object:, output:, output_text:, running:, sources:, status:, costs: nil, usage: nil) ⇒ Object

Parameters:



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/handinger/models/worker.rb', line 99

class File < Handinger::Internal::Type::BaseModel
  # @!attribute filename
  #
  #   @return [String, nil]
  required :filename, String, nil?: true

  # @!attribute media_type
  #
  #   @return [String]
  required :media_type, String, api_name: :mediaType

  # @!attribute url
  #
  #   @return [String]
  required :url, String

  # @!method initialize(filename:, media_type:, url:)
  #   @param filename [String, nil]
  #   @param media_type [String]
  #   @param url [String]
end

Instance Attribute Details

#filenameString?

Returns:

  • (String, nil)


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

required :filename, String, nil?: true

#media_typeString

Returns:

  • (String)


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

required :media_type, String, api_name: :mediaType

#urlString

Returns:

  • (String)


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

required :url, String