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



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

def initialize: (

Instance Attribute Details

#composition_guidanceArray<String>

Goal, tone, media, and editorial guidance.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


206
207
208
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 206

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

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



213
214
215
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 213

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)


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

required :intent_url, String, api_name: :intentUrl

#next_stepString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :next_step, String, api_name: :nextStep

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {