Class: XTwitterScraper::Models::X::MediaDownloadResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/x_twitter_scraper/models/x/media_download_response.rb

Overview

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(cache_hit: nil, gallery_url: nil, total_media: nil, total_tweets: nil, tweet_id: nil) ⇒ Object

Parameters:

  • cache_hit (Boolean) (defaults to: nil)
  • gallery_url (String) (defaults to: nil)
  • total_media (Integer) (defaults to: nil)
  • total_tweets (Integer) (defaults to: nil)
  • tweet_id (String) (defaults to: nil)


# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 33

Instance Attribute Details

#cache_hitBoolean?

Returns:

  • (Boolean, nil)


11
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 11

optional :cache_hit, XTwitterScraper::Internal::Type::Boolean, api_name: :cacheHit

Returns:

  • (String, nil)


16
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 16

optional :gallery_url, String, api_name: :galleryUrl

#total_mediaInteger?

Returns:

  • (Integer, nil)


21
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 21

optional :total_media, Integer, api_name: :totalMedia

#total_tweetsInteger?

Returns:

  • (Integer, nil)


26
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 26

optional :total_tweets, Integer, api_name: :totalTweets

#tweet_idString?

Returns:

  • (String, nil)


31
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 31

optional :tweet_id, String, api_name: :tweetId