Class: XTwitterScraper::Models::ComposeCreateParams::Body::ComposeScoreRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ComposeCreateParams::Body::ComposeScoreRequest
- Defined in:
- lib/x_twitter_scraper/models/compose_create_params.rb,
sig/x_twitter_scraper/models/compose_create_params.rbs
Instance Attribute Summary collapse
-
#draft ⇒ String
Full post text for deterministic editorial checks.
-
#has_link ⇒ Boolean?
True when a separate link card is attached.
-
#has_media ⇒ Boolean?
deprecated
Deprecated.
Ignored. Remove this field. Use hasLink for a separate link card.
- #step ⇒ Symbol, :score
Instance Method Summary collapse
-
#initialize(draft:, has_link: nil, has_media: nil, step: :score) ⇒ Object
constructor
Some parameter documentations has been truncated, see ComposeScoreRequest for more details.
- #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(draft:, has_link: nil, has_media: nil, step: :score) ⇒ Object
Some parameter documentations has been truncated, see XTwitterScraper::Models::ComposeCreateParams::Body::ComposeScoreRequest for more details.
|
|
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 196
|
Instance Attribute Details
#draft ⇒ String
Full post text for deterministic editorial checks.
175 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 175 required :draft, String |
#has_link ⇒ Boolean?
True when a separate link card is attached.
186 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 186 optional :has_link, XTwitterScraper::Internal::Type::Boolean, api_name: :hasLink |
#has_media ⇒ Boolean?
Ignored. Remove this field. Use hasLink for a separate link card.
Accepted for backward compatibility. Text checks ignore this field.
194 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 194 optional :has_media, XTwitterScraper::Internal::Type::Boolean, api_name: :hasMedia |
#step ⇒ Symbol, :score
180 |
# File 'lib/x_twitter_scraper/models/compose_create_params.rb', line 180 required :step, const: :score |
Instance Method Details
#to_hash ⇒ {
189 |
# File 'sig/x_twitter_scraper/models/compose_create_params.rbs', line 189
def to_hash: -> {
|