Class: Handinger::Models::Turn::File
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(filename:, media_type:, url:, size: nil) ⇒ Object
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# File 'lib/handinger/models/turn.rb', line 121
class File < Handinger::Internal::Type::BaseModel
required :filename, String, nil?: true
required :media_type, String, api_name: :mediaType
required :url, String
optional :size, Integer
end
|
Instance Attribute Details
#filename ⇒ String?
125
|
# File 'lib/handinger/models/turn.rb', line 125
required :filename, String, nil?: true
|
130
|
# File 'lib/handinger/models/turn.rb', line 130
required :media_type, String, api_name: :mediaType
|
#size ⇒ Integer?
140
|
# File 'lib/handinger/models/turn.rb', line 140
optional :size, Integer
|
#url ⇒ String
135
|
# File 'lib/handinger/models/turn.rb', line 135
required :url, String
|
Instance Method Details
#to_hash ⇒ {
110
|
# File 'sig/handinger/models/turn.rbs', line 110
def to_hash: -> {
|