Class: XTwitterScraper::Models::ComposeCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ComposeCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/x_twitter_scraper/models/compose_create_params.rb
Overview
Defined Under Namespace
Modules: Goal, MediaType, Step
Instance Attribute Summary collapse
-
#additional_context ⇒ String?
Extra context or URLs (refine).
-
#call_to_action ⇒ String?
Desired call to action (refine).
-
#draft ⇒ String?
Tweet draft text to evaluate (score).
-
#goal ⇒ Symbol, ...
Optimization goal.
-
#has_link ⇒ Boolean?
Whether a link is attached (score).
-
#has_media ⇒ Boolean?
Whether media is attached (score).
-
#media_type ⇒ Symbol, ...
Media type (refine).
-
#step ⇒ Symbol, XTwitterScraper::Models::ComposeCreateParams::Step
Workflow step.
-
#style_username ⇒ String?
Cached style username for voice matching (compose).
-
#tone ⇒ String?
Desired tone (refine).
-
#topic ⇒ String?
Tweet topic (compose, refine).
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(step:, additional_context: nil, call_to_action: nil, draft: nil, goal: nil, has_link: nil, has_media: nil, media_type: nil, style_username: nil, tone: nil, topic: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 76
|
Instance Attribute Details
#additional_context ⇒ String?
Extra context or URLs (refine)
20 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 20 optional :additional_context, String, api_name: :additionalContext |
#call_to_action ⇒ String?
Desired call to action (refine)
26 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 26 optional :call_to_action, String, api_name: :callToAction |
#draft ⇒ String?
Tweet draft text to evaluate (score)
32 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 32 optional :draft, String |
#goal ⇒ Symbol, ...
Optimization goal
38 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 38 optional :goal, enum: -> { XTwitterScraper::ComposeCreateParams::Goal } |
#has_link ⇒ Boolean?
Whether a link is attached (score)
44 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 44 optional :has_link, XTwitterScraper::Internal::Type::Boolean, api_name: :hasLink |
#has_media ⇒ Boolean?
Whether media is attached (score)
50 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 50 optional :has_media, XTwitterScraper::Internal::Type::Boolean, api_name: :hasMedia |
#media_type ⇒ Symbol, ...
Media type (refine)
56 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 56 optional :media_type, enum: -> { XTwitterScraper::ComposeCreateParams::MediaType }, api_name: :mediaType |
#step ⇒ Symbol, XTwitterScraper::Models::ComposeCreateParams::Step
Workflow step
14 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 14 required :step, enum: -> { XTwitterScraper::ComposeCreateParams::Step } |
#style_username ⇒ String?
Cached style username for voice matching (compose)
62 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 62 optional :style_username, String, api_name: :styleUsername |
#tone ⇒ String?
Desired tone (refine)
68 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 68 optional :tone, String |
#topic ⇒ String?
Tweet topic (compose, refine)
74 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 74 optional :topic, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 109
|