Class: XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ContentRule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult::ContentRule
- Defined in:
- lib/x_twitter_scraper/models/compose_create_response.rb,
sig/x_twitter_scraper/models/compose_create_response.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(content_rules:, engagement_multipliers:, engagement_velocity:, follow_up_questions:, intent_url:, next_step:, scorer_weights:, source:, top_penalties:, saved_styles: nil, style_note: nil, style_tweets: nil) ⇒ ContentRule
constructor
Some parameter documentations has been truncated, see XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult for more details.
- #to_hash ⇒ { rule: 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(content_rules:, engagement_multipliers:, engagement_velocity:, follow_up_questions:, intent_url:, next_step:, scorer_weights:, source:, top_penalties:, saved_styles: nil, style_note: nil, style_tweets: nil) ⇒ ContentRule
Some parameter documentations has been truncated, see XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult for more details.
129 130 131 132 133 134 135 136 137 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 129 class ContentRule < XTwitterScraper::Internal::Type::BaseModel # @!attribute rule # # @return [String] required :rule, String # @!method initialize(rule:) # @param rule [String] end |
Instance Attribute Details
#rule ⇒ String
133 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 133 required :rule, String |
Instance Method Details
#to_hash ⇒ { rule: String }
101 |
# File 'sig/x_twitter_scraper/models/compose_create_response.rbs', line 101
def to_hash: -> { rule: String }
|