Class: Onlyfans::Models::GiphySearchResponse::Data::Images::Original

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

Overview

See Also:

  • Onlyfans::Models::GiphySearchResponse::Data::Images#original

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, mp4: nil, url: nil, webp: nil, width: nil) ⇒ Object

Parameters:

  • height (String) (defaults to: nil)
  • mp4 (String) (defaults to: nil)
  • url (String) (defaults to: nil)
  • webp (String) (defaults to: nil)
  • width (String) (defaults to: nil)


# File 'lib/onlyfans/models/giphy_search_response.rb', line 236

Instance Attribute Details

#height ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :height, String

#mp4 ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :mp4, String

#url ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :url, String

#webp ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :webp, String

#width ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :width, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


318
# File 'sig/onlyfans/models/giphy_search_response.rbs', line 318

def to_hash: -> {