Class: XTwitterScraper::Models::PaginatedTweets
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::PaginatedTweets
- Defined in:
- lib/x_twitter_scraper/models/paginated_tweets.rb
Instance Attribute Summary collapse
- #has_next_page ⇒ Boolean
- #next_cursor ⇒ String
- #tweets ⇒ Array<XTwitterScraper::Models::X::SearchTweet>
Instance Method Summary collapse
-
#initialize(has_next_page:, next_cursor:, tweets:) ⇒ Object
constructor
Paginated list of tweets with cursor-based navigation.
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(has_next_page:, next_cursor:, tweets:) ⇒ Object
Paginated list of tweets with cursor-based navigation.
|
|
# File 'lib/x_twitter_scraper/models/paginated_tweets.rb', line 21
|
Instance Attribute Details
#has_next_page ⇒ Boolean
9 |
# File 'lib/x_twitter_scraper/models/paginated_tweets.rb', line 9 required :has_next_page, XTwitterScraper::Internal::Type::Boolean |
#next_cursor ⇒ String
14 |
# File 'lib/x_twitter_scraper/models/paginated_tweets.rb', line 14 required :next_cursor, String |
#tweets ⇒ Array<XTwitterScraper::Models::X::SearchTweet>
19 |
# File 'lib/x_twitter_scraper/models/paginated_tweets.rb', line 19 required :tweets, -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::X::SearchTweet] } |