Class: XTwitterScraper::Models::XGetTrendsResponse::Trend
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::XGetTrendsResponse::Trend
- Defined in:
- lib/x_twitter_scraper/models/x_get_trends_response.rb,
sig/x_twitter_scraper/models/x_get_trends_response.rbs
Instance Attribute Summary collapse
- #description ⇒ String?
- #name ⇒ String
-
#promoted_content ⇒ String?
Promotion identifier from X.
- #query ⇒ String?
- #rank ⇒ Integer?
-
#tweet_volume ⇒ Integer?
Approximate public post volume when X supplies it.
-
#url ⇒ String?
X search URL for the trend.
Instance Method Summary collapse
- #initialize(name:, description: nil, promoted_content: nil, query: nil, rank: nil, tweet_volume: nil, url: nil) ⇒ Object constructor
- #to_hash ⇒ {
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(name:, description: nil, promoted_content: nil, query: nil, rank: nil, tweet_volume: nil, url: nil) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/x_twitter_scraper/models/x_get_trends_response.rb', line 32 class Trend < XTwitterScraper::Internal::Type::BaseModel # @!attribute name # # @return [String] required :name, String # @!attribute description # # @return [String, nil] optional :description, String # @!attribute promoted_content # Promotion identifier from X. Null for organic trends. # # @return [String, nil] optional :promoted_content, String, api_name: :promotedContent, nil?: true # @!attribute query # # @return [String, nil] optional :query, String # @!attribute rank # # @return [Integer, nil] optional :rank, Integer # @!attribute tweet_volume # Approximate public post volume when X supplies it. # # @return [Integer, nil] optional :tweet_volume, Integer, api_name: :tweetVolume, nil?: true # @!attribute url # X search URL for the trend. # # @return [String, nil] optional :url, String # @!method initialize(name:, description: nil, promoted_content: nil, query: nil, rank: nil, tweet_volume: nil, url: nil) # @param name [String] # # @param description [String] # # @param promoted_content [String, nil] Promotion identifier from X. Null for organic trends. # # @param query [String] # # @param rank [Integer] # # @param tweet_volume [Integer, nil] Approximate public post volume when X supplies it. # # @param url [String] X search URL for the trend. end |
Instance Attribute Details
#description ⇒ String?
41 |
# File 'lib/x_twitter_scraper/models/x_get_trends_response.rb', line 41 optional :description, String |
#name ⇒ String
36 |
# File 'lib/x_twitter_scraper/models/x_get_trends_response.rb', line 36 required :name, String |
#promoted_content ⇒ String?
Promotion identifier from X. Null for organic trends.
47 |
# File 'lib/x_twitter_scraper/models/x_get_trends_response.rb', line 47 optional :promoted_content, String, api_name: :promotedContent, nil?: true |
#query ⇒ String?
52 |
# File 'lib/x_twitter_scraper/models/x_get_trends_response.rb', line 52 optional :query, String |
#rank ⇒ Integer?
57 |
# File 'lib/x_twitter_scraper/models/x_get_trends_response.rb', line 57 optional :rank, Integer |
#tweet_volume ⇒ Integer?
Approximate public post volume when X supplies it.
63 |
# File 'lib/x_twitter_scraper/models/x_get_trends_response.rb', line 63 optional :tweet_volume, Integer, api_name: :tweetVolume, nil?: true |
#url ⇒ String?
X search URL for the trend.
69 |
# File 'lib/x_twitter_scraper/models/x_get_trends_response.rb', line 69 optional :url, String |
Instance Method Details
#to_hash ⇒ {
77 |
# File 'sig/x_twitter_scraper/models/x_get_trends_response.rbs', line 77
def to_hash: -> {
|