Class: XTwitterScraper::Models::TweetMedia::VideoVariant
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(content_type:, url:, bitrate: nil) ⇒ Object
|
# File 'lib/x_twitter_scraper/models/tweet_media.rb', line 70
|
Instance Attribute Details
#bitrate ⇒ Integer?
68
|
# File 'lib/x_twitter_scraper/models/tweet_media.rb', line 68
optional :bitrate, Integer
|
#content_type ⇒ String
58
|
# File 'lib/x_twitter_scraper/models/tweet_media.rb', line 58
required :content_type, String, api_name: :contentType
|
#url ⇒ String
63
|
# File 'lib/x_twitter_scraper/models/tweet_media.rb', line 63
required :url, String
|
Instance Method Details
#to_hash ⇒ { content_type: String, url: String, bitrate: Integer }
68
|
# File 'sig/x_twitter_scraper/models/tweet_media.rbs', line 68
def to_hash: -> { content_type: String, url: String, bitrate: Integer }
|