Class: XTwitterScraper::Models::ComposeCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ComposeCreateResponse
- Defined in:
- lib/x_twitter_scraper/models/compose_create_response.rb
Overview
Instance Attribute Summary collapse
-
#feedback ⇒ String?
AI feedback on the draft.
-
#score ⇒ Float?
Engagement score (0-100).
-
#suggestions ⇒ Array<String>?
Improvement suggestions.
-
#text ⇒ String?
Generated or refined tweet text.
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
#initialize(feedback: nil, score: nil, suggestions: nil, text: nil) ⇒ Object
|
|
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 31
|
Instance Attribute Details
#feedback ⇒ String?
AI feedback on the draft
11 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 11 optional :feedback, String |
#score ⇒ Float?
Engagement score (0-100)
17 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 17 optional :score, Float |
#suggestions ⇒ Array<String>?
Improvement suggestions
23 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 23 optional :suggestions, XTwitterScraper::Internal::Type::ArrayOf[String] |
#text ⇒ String?
Generated or refined tweet text
29 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 29 optional :text, String |