Class: XTwitterScraper::Models::X::MediaDownloadResponse
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/x_twitter_scraper/models/x/media_download_response.rb,
sig/x_twitter_scraper/models/x/media_download_response.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#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
|
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 33
|
Instance Attribute Details
#cache_hit ⇒ Boolean?
11
|
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 11
optional :cache_hit, XTwitterScraper::Internal::Type::Boolean, api_name: :cacheHit
|
#gallery_url ⇒ String?
16
|
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 16
optional :gallery_url, String, api_name: :galleryUrl
|
21
|
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 21
optional :total_media, Integer, api_name: :totalMedia
|
26
|
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 26
optional :total_tweets, Integer, api_name: :totalTweets
|
31
|
# File 'lib/x_twitter_scraper/models/x/media_download_response.rb', line 31
optional :tweet_id, String, api_name: :tweetId
|
Instance Method Details
#to_hash ⇒ {
42
|
# File 'sig/x_twitter_scraper/models/x/media_download_response.rbs', line 42
def to_hash: -> {
|