Class: XTwitterScraper::Models::ContentDisclosure::Advertising

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

Overview

See Also:

  • XTwitterScraper::Models::ContentDisclosure#advertising

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

#initializeAdvertising

Returns a new instance of Advertising.

Parameters:

  • is_paid_promotion: (Boolean)


39
# File 'sig/x_twitter_scraper/models/content_disclosure.rbs', line 39

def initialize: (?is_paid_promotion: bool) -> void

Instance Attribute Details

#is_paid_promotionBoolean?

True when X labels the tweet as paid promotion content.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


29
# File 'lib/x_twitter_scraper/models/content_disclosure.rb', line 29

optional :is_paid_promotion, XTwitterScraper::Internal::Type::Boolean, api_name: :isPaidPromotion

Instance Method Details

#to_hash{ is_paid_promotion: bool }

Returns:

  • ({ is_paid_promotion: bool })


41
# File 'sig/x_twitter_scraper/models/content_disclosure.rbs', line 41

def to_hash: -> { is_paid_promotion: bool }