Class: XTwitterScraper::Models::SearchTweet::NoteTweet

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

Overview

See Also:

  • XTwitterScraper::Models::SearchTweet#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



358
# File 'sig/x_twitter_scraper/models/search_tweet.rbs', line 358

def initialize: (

Instance Attribute Details

#entitiesHash{Symbol=>Object}?

Parameters:

  • (::Hash[Symbol, top])

Returns:

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


467
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 467

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

#idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


462
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 462

optional :id, String

#is_expandableBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


472
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 472

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

#richtext_tagsArray<XTwitterScraper::Models::SearchTweet::NoteTweet::RichtextTag>?



477
478
479
480
481
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 477

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

#textString

Parameters:

  • value (String)

Returns:

  • (String)


457
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 457

required :text, String

Instance Method Details

#to_hash::Hash[Symbol, top]

Returns:

  • (::Hash[Symbol, top])


366
# File 'sig/x_twitter_scraper/models/search_tweet.rbs', line 366

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