Class: XTwitterScraper::Models::ComposeCreateParams::Body::ComposeScoreRequest

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

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

#initialize(draft:, has_link: nil, has_media: nil, step: :score) ⇒ Object

Some parameter documentations has been truncated, see XTwitterScraper::Models::ComposeCreateParams::Body::ComposeScoreRequest for more details.

Parameters:

  • draft (String)

    Full post text for deterministic editorial checks.

  • has_link (Boolean) (defaults to: nil)

    True when a separate link card is attached.

  • has_media (Boolean) (defaults to: nil)

    Accepted for backward compatibility. Text checks ignore this field.

  • step (Symbol, :score) (defaults to: :score)


# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 196

Instance Attribute Details

#draftString

Full post text for deterministic editorial checks.

Parameters:

  • value (String)

Returns:

  • (String)


175
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 175

required :draft, String

True when a separate link card is attached.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


186
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 186

optional :has_link, XTwitterScraper::Internal::Type::Boolean, api_name: :hasLink

#has_mediaBoolean?

Deprecated.

Ignored. Remove this field. Use hasLink for a separate link card.

Accepted for backward compatibility. Text checks ignore this field.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


194
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 194

optional :has_media, XTwitterScraper::Internal::Type::Boolean, api_name: :hasMedia

#stepSymbol, :score

Parameters:

  • value (:score)

Returns:

  • (Symbol, :score)


180
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 180

required :step, const: :score

Instance Method Details

#to_hash{

Returns:

  • ({)


189
# File 'sig/x_twitter_scraper/models/compose_create_params.rbs', line 189

def to_hash: -> {