Class: XTwitterScraper::Models::SearchTweet::NoteTweet::RichtextTag
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::SearchTweet::NoteTweet::RichtextTag
- Defined in:
- lib/x_twitter_scraper/models/search_tweet.rb,
sig/x_twitter_scraper/models/search_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.
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 492 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
496 |
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 496 required :from_index, Integer, api_name: :fromIndex |
#to_index ⇒ Integer
501 |
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 501 required :to_index, Integer, api_name: :toIndex |
#types ⇒ Array<String>
506 |
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 506 required :types, XTwitterScraper::Internal::Type::ArrayOf[String] |
Instance Method Details
#to_hash ⇒ ::Hash[Symbol, top]
384 |
# File 'sig/x_twitter_scraper/models/search_tweet.rbs', line 384
def to_hash: -> ::Hash[Symbol, top]
|