Class: Onlyfans::Models::GiphySearchResponse::Data

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

Defined Under Namespace

Classes: Images

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, embed_url: nil, images: nil, rating: nil, slug: nil, title: nil, type: nil, url: nil, username: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)
  • embed_url (String) (defaults to: nil)
  • images (Onlyfans::Models::GiphySearchResponse::Data::Images) (defaults to: nil)
  • rating (String) (defaults to: nil)
  • slug (String) (defaults to: nil)
  • title (String) (defaults to: nil)
  • type (String) (defaults to: nil)
  • url (String) (defaults to: nil)
  • username (String) (defaults to: nil)


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

Instance Attribute Details

#embed_url ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :embed_url, String

#id ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :id, String

#images ⇒ Onlyfans::Models::GiphySearchResponse::Data::Images?



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

optional :images, -> { Onlyfans::Models::GiphySearchResponse::Data::Images }

#rating ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :rating, String

#slug ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :slug, String

#title ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :title, String

#type ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :type, String

#url ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :url, String

#username ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :username, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {