Class: XTwitterScraper::Models::X::TweetDetail::PreviousCounts

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/x_twitter_scraper/models/x/tweet_detail.rb,
sig/x_twitter_scraper/models/x/tweet_detail.rbs

Overview

See Also:

  • XTwitterScraper::Models::X::TweetDetail#previous_counts

Instance Attribute Summary collapse

Instance Method Summary collapse

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(bookmark_count: nil, like_count: nil, quote_count: nil, reply_count: nil, retweet_count: nil) ⇒ Object

Engagement counts retained from a prior tweet edit.

Parameters:

  • bookmark_count (Integer) (defaults to: nil)
  • like_count (Integer) (defaults to: nil)
  • quote_count (Integer) (defaults to: nil)
  • reply_count (Integer) (defaults to: nil)
  • retweet_count (Integer) (defaults to: nil)


# File 'lib/x_twitter_scraper/models/x/tweet_detail.rb', line 603

Instance Attribute Details

#bookmark_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


581
# File 'lib/x_twitter_scraper/models/x/tweet_detail.rb', line 581

optional :bookmark_count, Integer, api_name: :bookmarkCount

#like_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


586
# File 'lib/x_twitter_scraper/models/x/tweet_detail.rb', line 586

optional :like_count, Integer, api_name: :likeCount

#quote_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


591
# File 'lib/x_twitter_scraper/models/x/tweet_detail.rb', line 591

optional :quote_count, Integer, api_name: :quoteCount

#reply_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


596
# File 'lib/x_twitter_scraper/models/x/tweet_detail.rb', line 596

optional :reply_count, Integer, api_name: :replyCount

#retweet_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


601
# File 'lib/x_twitter_scraper/models/x/tweet_detail.rb', line 601

optional :retweet_count, Integer, api_name: :retweetCount

Instance Method Details

#to_hash::Hash[Symbol, top]

Returns:

  • (::Hash[Symbol, top])


469
# File 'sig/x_twitter_scraper/models/x/tweet_detail.rbs', line 469

def to_hash: -> ::Hash[Symbol, top]