Class: Onlyfans::Models::PostRetrieveResponse::Data

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

Overview

See Also:

Defined Under Namespace

Classes: Author

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, author: nil, can_comment: nil, can_delete: nil, can_edit: nil, can_edit_text: nil, can_toggle_favorite: nil, can_view_media: nil, is_markdown_disabled: nil, is_media_ready: nil, is_opened: nil, posted_at: nil, posted_at_precise: nil, raw_text: nil, response_type: nil, text: nil, tips_amount: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • author (Onlyfans::Models::PostRetrieveResponse::Data::Author) (defaults to: nil)
  • can_comment (Boolean) (defaults to: nil)
  • can_delete (Boolean) (defaults to: nil)
  • can_edit (Boolean) (defaults to: nil)
  • can_edit_text (Boolean) (defaults to: nil)
  • can_toggle_favorite (Boolean) (defaults to: nil)
  • can_view_media (Boolean) (defaults to: nil)
  • is_markdown_disabled (Boolean) (defaults to: nil)
  • is_media_ready (Boolean) (defaults to: nil)
  • is_opened (Boolean) (defaults to: nil)
  • posted_at (String) (defaults to: nil)
  • posted_at_precise (String) (defaults to: nil)
  • raw_text (String) (defaults to: nil)
  • response_type (String) (defaults to: nil)
  • text (String) (defaults to: nil)
  • tips_amount (String) (defaults to: nil)


# File 'lib/onlyfans/models/post_retrieve_response.rb', line 200

Instance Attribute Details

#authorOnlyfans::Models::PostRetrieveResponse::Data::Author?



123
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 123

optional :author, -> { Onlyfans::Models::PostRetrieveResponse::Data::Author }

#can_commentBoolean?

Returns:

  • (Boolean, nil)


128
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 128

optional :can_comment, Onlyfans::Internal::Type::Boolean, api_name: :canComment

#can_deleteBoolean?

Returns:

  • (Boolean, nil)


133
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 133

optional :can_delete, Onlyfans::Internal::Type::Boolean, api_name: :canDelete

#can_editBoolean?

Returns:

  • (Boolean, nil)


138
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 138

optional :can_edit, Onlyfans::Internal::Type::Boolean, api_name: :canEdit

#can_edit_textBoolean?

Returns:

  • (Boolean, nil)


143
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 143

optional :can_edit_text, Onlyfans::Internal::Type::Boolean, api_name: :canEditText

#can_toggle_favoriteBoolean?

Returns:

  • (Boolean, nil)


148
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 148

optional :can_toggle_favorite, Onlyfans::Internal::Type::Boolean, api_name: :canToggleFavorite

#can_view_mediaBoolean?

Returns:

  • (Boolean, nil)


153
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 153

optional :can_view_media, Onlyfans::Internal::Type::Boolean, api_name: :canViewMedia

#idInteger?

Returns:

  • (Integer, nil)


118
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 118

optional :id, Integer

#is_markdown_disabledBoolean?

Returns:

  • (Boolean, nil)


158
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 158

optional :is_markdown_disabled, Onlyfans::Internal::Type::Boolean, api_name: :isMarkdownDisabled

#is_media_readyBoolean?

Returns:

  • (Boolean, nil)


163
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 163

optional :is_media_ready, Onlyfans::Internal::Type::Boolean, api_name: :isMediaReady

#is_openedBoolean?

Returns:

  • (Boolean, nil)


168
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 168

optional :is_opened, Onlyfans::Internal::Type::Boolean, api_name: :isOpened

#posted_atString?

Returns:

  • (String, nil)


173
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 173

optional :posted_at, String, api_name: :postedAt

#posted_at_preciseString?

Returns:

  • (String, nil)


178
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 178

optional :posted_at_precise, String, api_name: :postedAtPrecise

#raw_textString?

Returns:

  • (String, nil)


183
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 183

optional :raw_text, String, api_name: :rawText

#response_typeString?

Returns:

  • (String, nil)


188
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 188

optional :response_type, String, api_name: :responseType

#textString?

Returns:

  • (String, nil)


193
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 193

optional :text, String

#tips_amountString?

Returns:

  • (String, nil)


198
# File 'lib/onlyfans/models/post_retrieve_response.rb', line 198

optional :tips_amount, String, api_name: :tipsAmount