Class: XTwitterScraper::Models::EmbeddedTweet::NoteTweet::RichtextTag
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::EmbeddedTweet::NoteTweet::RichtextTag
- Defined in:
- lib/x_twitter_scraper/models/embedded_tweet.rb,
sig/x_twitter_scraper/models/embedded_tweet.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(text:, id: nil, entities: nil, is_expandable: nil, richtext_tags: nil) ⇒ Object
constructor
Complete Note Tweet content and rich-text metadata.
- #to_hash ⇒ ::Hash[Symbol, top]
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(text:, id: nil, entities: nil, is_expandable: nil, richtext_tags: nil) ⇒ Object
Complete Note Tweet content and rich-text metadata.
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 |
# File 'lib/x_twitter_scraper/models/embedded_tweet.rb', line 476 class RichtextTag < XTwitterScraper::Internal::Type::BaseModel # @!attribute from_index # # @return [Integer] required :from_index, Integer, api_name: :fromIndex # @!attribute to_index # # @return [Integer] required :to_index, Integer, api_name: :toIndex # @!attribute types # # @return [Array<String>] required :types, XTwitterScraper::Internal::Type::ArrayOf[String] # @!method initialize(from_index:, to_index:, types:) # @param from_index [Integer] # @param to_index [Integer] # @param types [Array<String>] end |
Instance Attribute Details
#from_index ⇒ Integer
480 |
# File 'lib/x_twitter_scraper/models/embedded_tweet.rb', line 480 required :from_index, Integer, api_name: :fromIndex |
#to_index ⇒ Integer
485 |
# File 'lib/x_twitter_scraper/models/embedded_tweet.rb', line 485 required :to_index, Integer, api_name: :toIndex |
#types ⇒ Array<String>
490 |
# File 'lib/x_twitter_scraper/models/embedded_tweet.rb', line 490 required :types, XTwitterScraper::Internal::Type::ArrayOf[String] |
Instance Method Details
#to_hash ⇒ ::Hash[Symbol, top]
384 |
# File 'sig/x_twitter_scraper/models/embedded_tweet.rbs', line 384
def to_hash: -> ::Hash[Symbol, top]
|