Class: XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult::ExamplePattern
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::ComposeCreateResponse::ComposeRefineResult::ExamplePattern
- 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(composition_guidance:, example_patterns:, intent_url:, next_step:) ⇒ ExamplePattern
constructor
A new instance of ExamplePattern.
- #to_hash ⇒ { description: String, pattern: 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(composition_guidance:, example_patterns:, intent_url:, next_step:) ⇒ ExamplePattern
Returns a new instance of ExamplePattern.
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 237 class ExamplePattern < XTwitterScraper::Internal::Type::BaseModel # @!attribute description # # @return [String] required :description, String # @!attribute pattern # # @return [String] required :pattern, String # @!method initialize(description:, pattern:) # @param description [String] # @param pattern [String] end |
Instance Attribute Details
#description ⇒ String
241 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 241 required :description, String |
#pattern ⇒ String
246 |
# File 'lib/x_twitter_scraper/models/compose_create_response.rb', line 246 required :pattern, String |
Instance Method Details
#to_hash ⇒ { description: String, pattern: String }
193 |
# File 'sig/x_twitter_scraper/models/compose_create_response.rbs', line 193
def to_hash: -> { description: String, pattern: String }
|