Class: Onlyfans::Models::PostCreateResponse::Data::Media

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/post_create_response.rb

Defined Under Namespace

Classes: Files

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: 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, release_forms: nil, type: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • can_view (Boolean) (defaults to: nil)
  • converted_to_video (Boolean) (defaults to: nil)
  • created_at (String) (defaults to: nil)
  • duration (Integer) (defaults to: nil)
  • files (Onlyfans::Models::PostCreateResponse::Data::Media::Files) (defaults to: nil)
  • has_custom_preview (Boolean) (defaults to: nil)
  • has_error (Boolean) (defaults to: nil)
  • is_ready (Boolean) (defaults to: nil)
  • release_forms (Array<Object>) (defaults to: nil)
  • type (String) (defaults to: nil)


# File 'lib/onlyfans/models/post_create_response.rb', line 564

Instance Attribute Details

#can_viewBoolean?

Returns:

  • (Boolean, nil)


515
# File 'lib/onlyfans/models/post_create_response.rb', line 515

optional :can_view, Onlyfans::Internal::Type::Boolean, api_name: :canView

#converted_to_videoBoolean?

Returns:

  • (Boolean, nil)


520
# File 'lib/onlyfans/models/post_create_response.rb', line 520

optional :converted_to_video, Onlyfans::Internal::Type::Boolean, api_name: :convertedToVideo

#created_atString?

Returns:

  • (String, nil)


525
# File 'lib/onlyfans/models/post_create_response.rb', line 525

optional :created_at, String, api_name: :createdAt

#durationInteger?

Returns:

  • (Integer, nil)


530
# File 'lib/onlyfans/models/post_create_response.rb', line 530

optional :duration, Integer

#filesOnlyfans::Models::PostCreateResponse::Data::Media::Files?



535
# File 'lib/onlyfans/models/post_create_response.rb', line 535

optional :files, -> { Onlyfans::Models::PostCreateResponse::Data::Media::Files }

#has_custom_previewBoolean?

Returns:

  • (Boolean, nil)


540
# File 'lib/onlyfans/models/post_create_response.rb', line 540

optional :has_custom_preview, Onlyfans::Internal::Type::Boolean, api_name: :hasCustomPreview

#has_errorBoolean?

Returns:

  • (Boolean, nil)


545
# File 'lib/onlyfans/models/post_create_response.rb', line 545

optional :has_error, Onlyfans::Internal::Type::Boolean, api_name: :hasError

#idInteger?

Returns:

  • (Integer, nil)


510
# File 'lib/onlyfans/models/post_create_response.rb', line 510

optional :id, Integer

#is_readyBoolean?

Returns:

  • (Boolean, nil)


550
# File 'lib/onlyfans/models/post_create_response.rb', line 550

optional :is_ready, Onlyfans::Internal::Type::Boolean, api_name: :isReady

#release_formsArray<Object>?

Returns:

  • (Array<Object>, nil)


555
556
557
# File 'lib/onlyfans/models/post_create_response.rb', line 555

optional :release_forms,
Onlyfans::Internal::Type::ArrayOf[Onlyfans::Internal::Type::Unknown],
api_name: :releaseForms

#typeString?

Returns:

  • (String, nil)


562
# File 'lib/onlyfans/models/post_create_response.rb', line 562

optional :type, String