Class: XTwitterScraper::Models::WebhookUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::WebhookUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/x_twitter_scraper/models/webhook_update_params.rb
Overview
Instance Attribute Summary collapse
-
#event_types ⇒ Array<Symbol, XTwitterScraper::Models::EventType>?
Array of event types to subscribe to.
- #id ⇒ String
- #is_active ⇒ Boolean?
- #url ⇒ String?
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
- #initialize(id:, event_types: nil, is_active: nil, url: nil, request_options: {}) ⇒ Object constructor
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(id:, event_types: nil, is_active: nil, url: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/x_twitter_scraper/models/webhook_update_params.rb', line 33
|
Instance Attribute Details
#event_types ⇒ Array<Symbol, XTwitterScraper::Models::EventType>?
Array of event types to subscribe to.
19 20 21 |
# File 'lib/x_twitter_scraper/models/webhook_update_params.rb', line 19 optional :event_types, -> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] }, api_name: :eventTypes |
#id ⇒ String
13 |
# File 'lib/x_twitter_scraper/models/webhook_update_params.rb', line 13 required :id, String |
#is_active ⇒ Boolean?
26 |
# File 'lib/x_twitter_scraper/models/webhook_update_params.rb', line 26 optional :is_active, XTwitterScraper::Internal::Type::Boolean, api_name: :isActive |
#url ⇒ String?
31 |
# File 'lib/x_twitter_scraper/models/webhook_update_params.rb', line 31 optional :url, String |