Class: XTwitterScraper::Models::TweetMedia::Size
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::TweetMedia::Size
- Defined in:
- lib/x_twitter_scraper/models/tweet_media.rb,
sig/x_twitter_scraper/models/tweet_media.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Size
constructor
A new instance of Size.
- #to_hash ⇒ ::Hash[Symbol, top]
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 ⇒ Size
Returns a new instance of Size.
180 |
# File 'sig/x_twitter_scraper/models/tweet_media.rbs', line 180
def initialize: (h: Integer, resize: String, w: Integer) -> void
|
Instance Attribute Details
#h ⇒ Integer
252 |
# File 'lib/x_twitter_scraper/models/tweet_media.rb', line 252 required :h, Integer |
#resize ⇒ String
257 |
# File 'lib/x_twitter_scraper/models/tweet_media.rb', line 257 required :resize, String |
#w ⇒ Integer
262 |
# File 'lib/x_twitter_scraper/models/tweet_media.rb', line 262 required :w, Integer |
Instance Method Details
#to_hash ⇒ ::Hash[Symbol, top]
182 |
# File 'sig/x_twitter_scraper/models/tweet_media.rbs', line 182
def to_hash: -> ::Hash[Symbol, top]
|