Class: Onlyfans::Models::PostArchiveResponse::Data::LabelState

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

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, is_clear_in_progress: nil, name: nil, posts: nil, posts_count: nil, type: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)
  • is_clear_in_progress (Boolean) (defaults to: nil)
  • name (String) (defaults to: nil)
  • posts (Array<Object>) (defaults to: nil)
  • posts_count (Integer) (defaults to: nil)
  • type (String) (defaults to: nil)


# File 'lib/onlyfans/models/post_archive_response.rb', line 215

Instance Attribute Details

#id ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :id, String

#is_clear_in_progress ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :is_clear_in_progress, Onlyfans::Internal::Type::Boolean, api_name: :isClearInProgress

#name ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :name, String

#posts ⇒ Array<Object>?

Parameters:

  • (::Array[top])

Returns:

  • (Array<Object>, nil)


203
# File 'lib/onlyfans/models/post_archive_response.rb', line 203

optional :posts, Onlyfans::Internal::Type::ArrayOf[Onlyfans::Internal::Type::Unknown]

#posts_count ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


208
# File 'lib/onlyfans/models/post_archive_response.rb', line 208

optional :posts_count, Integer, api_name: :postsCount

#type ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


213
# File 'lib/onlyfans/models/post_archive_response.rb', line 213

optional :type, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


292
# File 'sig/onlyfans/models/post_archive_response.rbs', line 292

def to_hash: -> {