Class: XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult

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

Defined Under Namespace

Classes: Checklist

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

#initializeObject



225
# File 'sig/x_twitter_scraper/models/compose_create_response.rbs', line 225

def initialize: (

Instance Attribute Details

#checklistArray<XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult::Checklist>

Deterministic editorial checks. Not a reach prediction.



259
260
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 259

required :checklist,
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult::Checklist] }

#intent_urlString?

Present only when every check passes.

Parameters:

  • (String)

Returns:

  • (String, nil)


291
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 291

optional :intent_url, String, api_name: :intentUrl

#next_stepString

Parameters:

  • value (String)

Returns:

  • (String)


265
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 265

required :next_step, String, api_name: :nextStep

#passedBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


270
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 270

required :passed, XTwitterScraper::Internal::Type::Boolean

#passed_countInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


275
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 275

required :passed_count, Integer, api_name: :passedCount

#top_suggestionString

Parameters:

  • value (String)

Returns:

  • (String)


280
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 280

required :top_suggestion, String, api_name: :topSuggestion

#total_checksInteger, 9

Parameters:

  • value (9)

Returns:

  • (Integer, 9)


285
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 285

required :total_checks, const: 9, api_name: :totalChecks

Instance Method Details

#to_hash{

Returns:

  • ({)


235
# File 'sig/x_twitter_scraper/models/compose_create_response.rbs', line 235

def to_hash: -> {