Class: XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ScorerWeight
- Defined in:
- lib/x_twitter_scraper/models/compose_create_response.rb,
sig/x_twitter_scraper/models/compose_create_response.rbs
Instance Attribute Summary collapse
-
#context ⇒ String
Signal direction and publication limit.
-
#signal ⇒ String
Signal name from X's public ranking repository.
-
#weight ⇒ nil
X does not publish the production weight.
Instance Method Summary collapse
-
#initialize ⇒ ScorerWeight
constructor
A new instance of ScorerWeight.
- #to_hash ⇒ { context: String, signal: String, weight: nil }
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 ⇒ ScorerWeight
Returns a new instance of ScorerWeight.
135 |
# File 'sig/x_twitter_scraper/models/compose_create_response.rbs', line 135
def initialize: (context: String, signal: String, weight: nil) -> void
|
Instance Attribute Details
#context ⇒ String
Signal direction and publication limit.
162 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 162 required :context, String |
#signal ⇒ String
Signal name from X's public ranking repository.
168 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 168 required :signal, String |
#weight ⇒ nil
X does not publish the production weight.
174 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 174 required :weight, NilClass |
Instance Method Details
#to_hash ⇒ { context: String, signal: String, weight: nil }
137 |
# File 'sig/x_twitter_scraper/models/compose_create_response.rbs', line 137
def to_hash: -> { context: String, signal: String, weight: nil }
|