Class: Onlyfans::Models::StoryCreateResponse::Data::Media
Defined Under Namespace
Classes: Files
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(id: nil, can_view: nil, converted_to_video: nil, created_at: nil, duration: nil, files: nil, has_custom_preview: nil, has_error: nil, is_ready: nil, type: nil) ⇒ Object
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
|
# File 'lib/onlyfans/models/story_create_response.rb', line 240
class Media < Onlyfans::Internal::Type::BaseModel
optional :id, Integer
optional :can_view, Onlyfans::Internal::Type::Boolean, api_name: :canView
optional :converted_to_video, Onlyfans::Internal::Type::Boolean, api_name: :convertedToVideo
optional :created_at, String, api_name: :createdAt
optional :duration, Integer
optional :files, -> { Onlyfans::Models::StoryCreateResponse::Data::Media::Files }
optional :has_custom_preview, Onlyfans::Internal::Type::Boolean, api_name: :hasCustomPreview
optional :has_error, Onlyfans::Internal::Type::Boolean, api_name: :hasError
optional :is_ready, Onlyfans::Internal::Type::Boolean, api_name: :isReady
optional :type, String
class Files < Onlyfans::Internal::Type::BaseModel
optional :full, -> { Onlyfans::Models::StoryCreateResponse::Data::Media::Files::Full }
optional :preview, String, nil?: true
optional :square_preview, String, api_name: :squarePreview, nil?: true
optional :thumb, String, nil?: true
class Full < Onlyfans::Internal::Type::BaseModel
optional :height, Integer
optional :size, Integer
optional :sources, Onlyfans::Internal::Type::ArrayOf[Onlyfans::Internal::Type::Unknown]
optional :url, String, nil?: true
optional :width, Integer
end
end
end
|
Instance Attribute Details
#can_view ⇒ Boolean?
249
|
# File 'lib/onlyfans/models/story_create_response.rb', line 249
optional :can_view, Onlyfans::Internal::Type::Boolean, api_name: :canView
|
#converted_to_video ⇒ Boolean?
254
|
# File 'lib/onlyfans/models/story_create_response.rb', line 254
optional :converted_to_video, Onlyfans::Internal::Type::Boolean, api_name: :convertedToVideo
|
#created_at ⇒ String?
259
|
# File 'lib/onlyfans/models/story_create_response.rb', line 259
optional :created_at, String, api_name: :createdAt
|
#duration ⇒ Integer?
264
|
# File 'lib/onlyfans/models/story_create_response.rb', line 264
optional :duration, Integer
|
#has_custom_preview ⇒ Boolean?
274
|
# File 'lib/onlyfans/models/story_create_response.rb', line 274
optional :has_custom_preview, Onlyfans::Internal::Type::Boolean, api_name: :hasCustomPreview
|
#has_error ⇒ Boolean?
279
|
# File 'lib/onlyfans/models/story_create_response.rb', line 279
optional :has_error, Onlyfans::Internal::Type::Boolean, api_name: :hasError
|
#id ⇒ Integer?
244
|
# File 'lib/onlyfans/models/story_create_response.rb', line 244
optional :id, Integer
|
#is_ready ⇒ Boolean?
284
|
# File 'lib/onlyfans/models/story_create_response.rb', line 284
optional :is_ready, Onlyfans::Internal::Type::Boolean, api_name: :isReady
|
#type ⇒ String?
289
|
# File 'lib/onlyfans/models/story_create_response.rb', line 289
optional :type, String
|