Class: XTwitterScraper::Models::X::TweetAuthor

Inherits:
UserProfile show all
Defined in:
lib/x_twitter_scraper/models/x/tweet_author.rb,
sig/x_twitter_scraper/models/x/tweet_author.rbs

Instance Attribute Summary collapse

Attributes inherited from UserProfile

#affiliates_highlighted_label, #automated_by, #business_account_affiliates_count, #community_role, #cover_picture, #created_at, #creator_subscriptions_count, #description, #favourites_count, #following, #has_custom_timelines, #has_graduated_access, #has_hidden_subscriptions_on_profile, #highlights_info, #id, #identity_verification, #is_automated, #is_blue_verified, #is_profile_translatable, #is_translator, #is_verified, #location, #media_count, #name, #parody_commentary_fan_label, #pinned_tweet_ids, #possibly_sensitive, #profile_banner_url, #profile_bio, #profile_description_language, #profile_image_shape, #profile_interstitial_type, #profile_picture, #profile_sort_enabled, #profile_translator_type, #protected, #statuses_count, #super_follow_eligible, #unavailable, #unavailable_reason, #url, #username, #verified_type, #withheld_in_countries

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(followers:, verified:) ⇒ TweetAuthor

Tweet author profile. The lookup route always includes follower count and verification state. Other profile fields appear when available.

Parameters:

  • followers (Integer)
  • verified (Boolean)
  • (Object)


# File 'lib/x_twitter_scraper/models/x/tweet_author.rb', line 21

Instance Attribute Details

#followersInteger

Parameters:

  • _ (Integer)

Returns:

  • (Integer)


14
# File 'lib/x_twitter_scraper/models/x/tweet_author.rb', line 14

required :followers, Integer

#verifiedBoolean

Parameters:

  • _ (Boolean)

Returns:

  • (Boolean)


19
# File 'lib/x_twitter_scraper/models/x/tweet_author.rb', line 19

required :verified, XTwitterScraper::Internal::Type::Boolean

Instance Method Details

#to_hash::Hash[Symbol, top]

Returns:

  • (::Hash[Symbol, top])


21
# File 'sig/x_twitter_scraper/models/x/tweet_author.rbs', line 21

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