Class: XTwitterScraper::Models::XGetArticleResponse::Article::Content::InlineStyleRange
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::XGetArticleResponse::Article::Content::InlineStyleRange
- Defined in:
- lib/x_twitter_scraper/models/x_get_article_response.rb,
sig/x_twitter_scraper/models/x_get_article_response.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(height: nil, inline_style_ranges: nil, preview_url: nil, text: nil, type: nil, url: nil, width: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see XTwitterScraper::Models::XGetArticleResponse::Article::Content for more details.
- #to_hash ⇒ { length: Integer, offset: Integer, style: String }
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(height: nil, inline_style_ranges: nil, preview_url: nil, text: nil, type: nil, url: nil, width: nil) ⇒ Object
Some parameter documentations has been truncated, see XTwitterScraper::Models::XGetArticleResponse::Article::Content for more details.
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 161 class InlineStyleRange < XTwitterScraper::Internal::Type::BaseModel # @!attribute length # # @return [Integer, nil] optional :length, Integer # @!attribute offset # # @return [Integer, nil] optional :offset, Integer # @!attribute style # # @return [String, nil] optional :style, String # @!method initialize(length: nil, offset: nil, style: nil) # @param length [Integer] # @param offset [Integer] # @param style [String] end |
Instance Attribute Details
#length ⇒ Integer?
165 |
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 165 optional :length, Integer |
#offset ⇒ Integer?
170 |
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 170 optional :offset, Integer |
#style ⇒ String?
175 |
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 175 optional :style, String |
Instance Method Details
#to_hash ⇒ { length: Integer, offset: Integer, style: String }
195 |
# File 'sig/x_twitter_scraper/models/x_get_article_response.rbs', line 195
def to_hash: -> { length: Integer, offset: Integer, style: String }
|