Class: XTwitterScraper::Models::Error
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::Error
- Defined in:
- lib/x_twitter_scraper/models/error.rb
Defined Under Namespace
Modules: Error
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(error:) ⇒ Object
constructor
Error response containing a machine-readable error code.
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(error:) ⇒ Object
Error response containing a machine-readable error code.
|
|
# File 'lib/x_twitter_scraper/models/error.rb', line 11
|
Instance Attribute Details
#error ⇒ Symbol, XTwitterScraper::Models::Error::Error
9 |
# File 'lib/x_twitter_scraper/models/error.rb', line 9 required :error, enum: -> { XTwitterScraper::Error::Error } |