Class: XTwitterScraper::Models::WebhookTestResponse
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/x_twitter_scraper/models/webhook_test_response.rb,
sig/x_twitter_scraper/models/webhook_test_response.rbs
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(status_code:, success:, error: nil) ⇒ Object
|
# File 'lib/x_twitter_scraper/models/webhook_test_response.rb', line 22
|
Instance Attribute Details
#error ⇒ String?
20
|
# File 'lib/x_twitter_scraper/models/webhook_test_response.rb', line 20
optional :error, String
|
#status_code ⇒ Integer
10
|
# File 'lib/x_twitter_scraper/models/webhook_test_response.rb', line 10
required :status_code, Integer, api_name: :statusCode
|
#success ⇒ Boolean
15
|
# File 'lib/x_twitter_scraper/models/webhook_test_response.rb', line 15
required :success, XTwitterScraper::Internal::Type::Boolean
|
Instance Method Details
#to_hash ⇒ { status_code: Integer, success: bool, error: String }
21
|
# File 'sig/x_twitter_scraper/models/webhook_test_response.rbs', line 21
def to_hash: -> { status_code: Integer, success: bool, error: String }
|