Class: XTwitterScraper::Models::X::TweetDetail::NoteTweet

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#note_tweet

Defined Under Namespace

Classes: RichtextTag

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

#initializeObject



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

def initialize: (

Instance Attribute Details

#entitiesHash{Symbol=>Object}?

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


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

optional :entities, XTwitterScraper::Internal::Type::HashOf[XTwitterScraper::Internal::Type::Unknown]

#idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :id, String

#is_expandableBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :is_expandable, XTwitterScraper::Internal::Type::Boolean, api_name: :isExpandable

#richtext_tagsArray<XTwitterScraper::Models::X::TweetDetail::NoteTweet::RichtextTag>?



481
482
483
484
485
# File 'lib/x_twitter_scraper/models/x/tweet_detail.rb', line 481

optional :richtext_tags,
-> {
  XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::X::TweetDetail::NoteTweet::RichtextTag]
},
api_name: :richtextTags

#textString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :text, String

Instance Method Details

#to_hash::Hash[Symbol, top]

Returns:

  • (::Hash[Symbol, top])


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

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