Class: XTwitterScraper::Models::Winner
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::Winner
- Defined in:
- lib/x_twitter_scraper/models/winner.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(author_username:, is_backup:, position:, tweet_id:) ⇒ Object
constructor
Giveaway draw winner with position and backup flag.
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(author_username:, is_backup:, position:, tweet_id:) ⇒ Object
Giveaway draw winner with position and backup flag.
|
|
# File 'lib/x_twitter_scraper/models/winner.rb', line 26
|
Instance Attribute Details
#author_username ⇒ String
9 |
# File 'lib/x_twitter_scraper/models/winner.rb', line 9 required :author_username, String, api_name: :authorUsername |
#is_backup ⇒ Boolean
14 |
# File 'lib/x_twitter_scraper/models/winner.rb', line 14 required :is_backup, XTwitterScraper::Internal::Type::Boolean, api_name: :isBackup |
#position ⇒ Integer
19 |
# File 'lib/x_twitter_scraper/models/winner.rb', line 19 required :position, Integer |
#tweet_id ⇒ String
24 |
# File 'lib/x_twitter_scraper/models/winner.rb', line 24 required :tweet_id, String, api_name: :tweetId |