Class: Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview

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

Overview

See Also:

  • Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files#preview

Defined Under Namespace

Classes: Sources

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(height: nil, size: nil, sources: nil, url: nil, width: nil) ⇒ Object

Parameters:



# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 479


Instance Attribute Details

#height ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


456
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 456

optional :height, Integer

#size ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


461
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 461

optional :size, Integer

#sources ⇒ Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview::Sources?



466
467
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 466

optional :sources,
-> { Onlyfans::Models::Stories::HighlightRetrieveResponse::Data::Story::Media::Files::Preview::Sources }

#url ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


472
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 472

optional :url, String

#width ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


477
# File 'lib/onlyfans/models/stories/highlight_retrieve_response.rb', line 477

optional :width, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


617
# File 'sig/onlyfans/models/stories/highlight_retrieve_response.rbs', line 617

def to_hash: -> {