Class: XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult

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: ExamplePattern

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



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

def initialize: (

Instance Attribute Details

#composition_guidanceArray<String>

Goal, tone, media, and editorial guidance.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


267
268
269
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 267

required :composition_guidance,
XTwitterScraper::Internal::Type::ArrayOf[String],
api_name: :compositionGuidance

#example_patternsArray<XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult::ExamplePattern>



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

required :example_patterns,
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult::ExamplePattern] },
api_name: :examplePatterns

#intent_urlString

X post intent seeded with the topic.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :intent_url, String, api_name: :intentUrl

#next_stepString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :next_step, String, api_name: :nextStep

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {