Class: XTwitterScraper::Models::X::TweetSearchParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::X::TweetSearchParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/x_twitter_scraper/models/x/tweet_search_params.rb
Overview
Defined Under Namespace
Modules: QueryType
Instance Attribute Summary collapse
-
#cursor ⇒ String?
Pagination cursor from previous response.
-
#limit ⇒ Integer?
Max tweets to return (server paginates internally).
-
#q ⇒ String
Search query (keywords,.
-
#query_type ⇒ Symbol, ...
Sort order — Latest (chronological) or Top (engagement-ranked).
-
#since_time ⇒ String?
ISO 8601 timestamp — only return tweets after this time.
-
#until_time ⇒ String?
ISO 8601 timestamp — only return tweets before this time.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(q:, cursor: nil, limit: nil, query_type: nil, since_time: nil, until_time: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 47
|
Instance Attribute Details
#cursor ⇒ String?
Pagination cursor from previous response
21 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 21 optional :cursor, String |
#limit ⇒ Integer?
Max tweets to return (server paginates internally). Omit for single page (~20).
27 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 27 optional :limit, Integer |
#q ⇒ String
Search query (keywords,
15 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 15 required :q, String |
#query_type ⇒ Symbol, ...
Sort order — Latest (chronological) or Top (engagement-ranked)
33 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 33 optional :query_type, enum: -> { XTwitterScraper::X::TweetSearchParams::QueryType } |
#since_time ⇒ String?
ISO 8601 timestamp — only return tweets after this time
39 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 39 optional :since_time, String |
#until_time ⇒ String?
ISO 8601 timestamp — only return tweets before this time
45 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 45 optional :until_time, String |