Class: XTwitterScraper::Models::ComposeCreateParams::Body::ComposeRefineRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ComposeCreateParams::Body::ComposeRefineRequest
- Defined in:
- lib/x_twitter_scraper/models/compose_create_params.rb,
sig/x_twitter_scraper/models/compose_create_params.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#additional_context ⇒ String?
Audience, constraints, sources, or other writing context.
-
#call_to_action ⇒ String?
Specific action the draft should request.
-
#goal ⇒ Symbol, XTwitterScraper::Models::ComposeCreateParams::Body::ComposeRefineRequest::Goal
Editorial goal for the guidance.
-
#media_type ⇒ Symbol, ...
Planned media type.
- #step ⇒ Symbol, :refine
-
#tone ⇒ String
Requested writing tone.
-
#topic ⇒ String
Subject for the post.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(goal:, tone:, topic:, additional_context: nil, call_to_action: nil, media_type: nil, step: :refine) ⇒ Object constructor
- #to_hash ⇒ {
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(goal:, tone:, topic:, additional_context: nil, call_to_action: nil, media_type: nil, step: :refine) ⇒ Object
|
|
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 125
|
Instance Attribute Details
#additional_context ⇒ String?
Audience, constraints, sources, or other writing context.
109 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 109 optional :additional_context, String, api_name: :additionalContext |
#call_to_action ⇒ String?
Specific action the draft should request.
115 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 115 optional :call_to_action, String, api_name: :callToAction |
#goal ⇒ Symbol, XTwitterScraper::Models::ComposeCreateParams::Body::ComposeRefineRequest::Goal
Editorial goal for the guidance.
86 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 86 required :goal, enum: -> { XTwitterScraper::ComposeCreateParams::Body::ComposeRefineRequest::Goal } |
#media_type ⇒ Symbol, ...
Planned media type.
121 122 123 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 121 optional :media_type, enum: -> { XTwitterScraper::ComposeCreateParams::Body::ComposeRefineRequest::MediaType }, api_name: :mediaType |
#step ⇒ Symbol, :refine
91 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 91 required :step, const: :refine |
#tone ⇒ String
Requested writing tone.
97 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 97 required :tone, String |
#topic ⇒ String
Subject for the post.
103 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 103 required :topic, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 151
|
Instance Method Details
#to_hash ⇒ {
130 |
# File 'sig/x_twitter_scraper/models/compose_create_params.rbs', line 130
def to_hash: -> {
|