Class: Onlyfans::Models::PostListResponse::Data::List

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/post_list_response.rb,
sig/onlyfans/models/post_list_response.rbs

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_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::PostListResponse::Data::List::Author) (defaults to: nil)
  • can_comment (Boolean) (defaults to: nil)
  • can_delete (Boolean) (defaults to: nil)
  • can_edit (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_list_response.rb', line 281

Instance Attribute Details

#author ⇒ Onlyfans::Models::PostListResponse::Data::List::Author?



209
# File 'lib/onlyfans/models/post_list_response.rb', line 209

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

#can_comment ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


214
# File 'lib/onlyfans/models/post_list_response.rb', line 214

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

#can_delete ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


219
# File 'lib/onlyfans/models/post_list_response.rb', line 219

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

#can_edit ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


224
# File 'lib/onlyfans/models/post_list_response.rb', line 224

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

#can_toggle_favorite ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


229
# File 'lib/onlyfans/models/post_list_response.rb', line 229

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

#can_view_media ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


234
# File 'lib/onlyfans/models/post_list_response.rb', line 234

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

#id ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


204
# File 'lib/onlyfans/models/post_list_response.rb', line 204

optional :id, Integer

#is_markdown_disabled ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


239
# File 'lib/onlyfans/models/post_list_response.rb', line 239

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

#is_media_ready ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


244
# File 'lib/onlyfans/models/post_list_response.rb', line 244

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

#is_opened ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


249
# File 'lib/onlyfans/models/post_list_response.rb', line 249

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

#posted_at ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


254
# File 'lib/onlyfans/models/post_list_response.rb', line 254

optional :posted_at, String, api_name: :postedAt

#posted_at_precise ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


259
# File 'lib/onlyfans/models/post_list_response.rb', line 259

optional :posted_at_precise, String, api_name: :postedAtPrecise

#raw_text ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


264
# File 'lib/onlyfans/models/post_list_response.rb', line 264

optional :raw_text, String, api_name: :rawText

#response_type ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


269
# File 'lib/onlyfans/models/post_list_response.rb', line 269

optional :response_type, String, api_name: :responseType

#text ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


274
# File 'lib/onlyfans/models/post_list_response.rb', line 274

optional :text, String

#tips_amount ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


279
# File 'lib/onlyfans/models/post_list_response.rb', line 279

optional :tips_amount, String, api_name: :tipsAmount

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


375
# File 'sig/onlyfans/models/post_list_response.rbs', line 375

def to_hash: -> {