Class: Onlyfans::Models::Media::Vault::ListListResponse::Data::All::Media

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/media/vault/list_list_response.rb

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(audios_count: nil, gifs_count: nil, medias: nil, photos_count: nil, videos_count: nil) ⇒ Object

Parameters:



193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# File 'lib/onlyfans/models/media/vault/list_list_response.rb', line 193

class Media < Onlyfans::Internal::Type::BaseModel
  # @!attribute type
  #
  #   @return [String, nil]
  optional :type, String

  # @!attribute url
  #
  #   @return [String, nil]
  optional :url, String

  # @!method initialize(type: nil, url: nil)
  #   @param type [String]
  #   @param url [String]
end

Instance Attribute Details

#typeString?

Returns:

  • (String, nil)


197
# File 'lib/onlyfans/models/media/vault/list_list_response.rb', line 197

optional :type, String

#urlString?

Returns:

  • (String, nil)


202
# File 'lib/onlyfans/models/media/vault/list_list_response.rb', line 202

optional :url, String