Class: XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult::Checklist
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ComposeCreateResponse::ComposeScoreResult::Checklist
- Defined in:
- lib/x_twitter_scraper/models/compose_create_response.rb,
sig/x_twitter_scraper/models/compose_create_response.rbs
Instance Attribute Summary collapse
- #factor ⇒ String
- #passed ⇒ Boolean
-
#suggestion ⇒ String?
Present only when the check fails.
Instance Method Summary collapse
- #initialize(factor:, passed:, suggestion: nil) ⇒ Object constructor
- #to_hash ⇒ { factor: String, passed: bool, suggestion: String }
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(factor:, passed:, suggestion: nil) ⇒ Object
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 308 class Checklist < XTwitterScraper::Internal::Type::BaseModel # @!attribute factor # # @return [String] required :factor, String # @!attribute passed # # @return [Boolean] required :passed, XTwitterScraper::Internal::Type::Boolean # @!attribute suggestion # Present only when the check fails. # # @return [String, nil] optional :suggestion, String # @!method initialize(factor:, passed:, suggestion: nil) # @param factor [String] # # @param passed [Boolean] # # @param suggestion [String] Present only when the check fails. end |
Instance Attribute Details
#factor ⇒ String
312 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 312 required :factor, String |
#passed ⇒ Boolean
317 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 317 required :passed, XTwitterScraper::Internal::Type::Boolean |
#suggestion ⇒ String?
Present only when the check fails.
323 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 323 optional :suggestion, String |
Instance Method Details
#to_hash ⇒ { factor: String, passed: bool, suggestion: String }
262 |
# File 'sig/x_twitter_scraper/models/compose_create_response.rbs', line 262
def to_hash: -> { factor: String, passed: bool, suggestion: String }
|