Class: XTwitterScraper::Models::ContentDisclosure
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ContentDisclosure
- Defined in:
- lib/x_twitter_scraper/models/content_disclosure.rb,
sig/x_twitter_scraper/models/content_disclosure.rbs
Defined Under Namespace
Classes: AIGenerated, Advertising
Instance Attribute Summary collapse
- #advertising ⇒ XTwitterScraper::Models::ContentDisclosure::Advertising?
- #ai_generated ⇒ XTwitterScraper::Models::ContentDisclosure::AIGenerated?
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
#initialize(is_paid_promotion: nil) ⇒ Object
|
|
# File 'lib/x_twitter_scraper/models/content_disclosure.rb', line 16
|
Instance Attribute Details
#advertising ⇒ XTwitterScraper::Models::ContentDisclosure::Advertising?
9 |
# File 'lib/x_twitter_scraper/models/content_disclosure.rb', line 9 optional :advertising, -> { XTwitterScraper::ContentDisclosure::Advertising } |
#ai_generated ⇒ XTwitterScraper::Models::ContentDisclosure::AIGenerated?
14 |
# File 'lib/x_twitter_scraper/models/content_disclosure.rb', line 14 optional :ai_generated, -> { XTwitterScraper::ContentDisclosure::AIGenerated }, api_name: :aiGenerated |
Instance Method Details
#to_hash ⇒ {
27 |
# File 'sig/x_twitter_scraper/models/content_disclosure.rbs', line 27
def to_hash: -> {
|