Class: Handinger::Models::TaskWithTurns::Turn::File

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/handinger/models/task_with_turns.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(filename:, media_type:, url:, size: nil) ⇒ Object

Parameters:

  • filename (String, nil)
  • media_type (String)
  • url (String)
  • size (Integer) (defaults to: nil)


137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/handinger/models/task_with_turns.rb', line 137

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

  # @!attribute size
  #
  #   @return [Integer, nil]
  optional :size, Integer

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

Instance Attribute Details

#filenameString?

Returns:

  • (String, nil)


141
# File 'lib/handinger/models/task_with_turns.rb', line 141

required :filename, String, nil?: true

#media_typeString

Returns:

  • (String)


146
# File 'lib/handinger/models/task_with_turns.rb', line 146

required :media_type, String, api_name: :mediaType

#sizeInteger?

Returns:

  • (Integer, nil)


156
# File 'lib/handinger/models/task_with_turns.rb', line 156

optional :size, Integer

#urlString

Returns:

  • (String)


151
# File 'lib/handinger/models/task_with_turns.rb', line 151

required :url, String