Class: Imagekitio::Models::BaseWebhookEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::BaseWebhookEvent
- Defined in:
- lib/imagekitio/models/base_webhook_event.rb,
sig/imagekitio/models/base_webhook_event.rbs
Direct Known Subclasses
FileCreateEvent, FileDeleteEvent, FileUpdateEvent, FileVersionCreateEvent, FileVersionDeleteEvent, UploadPostTransformErrorEvent, UploadPostTransformSuccessEvent, UploadPreTransformErrorEvent, UploadPreTransformSuccessEvent, VideoTransformationAcceptedEvent, VideoTransformationErrorEvent, VideoTransformationReadyEvent
Instance Attribute Summary collapse
-
#id ⇒ String
Unique identifier for the event.
-
#type ⇒ String
The type of webhook event.
Instance Method Summary collapse
-
#initialize(id:, type:) ⇒ BaseWebhookEvent
constructor
A new instance of BaseWebhookEvent.
- #to_hash ⇒ { id: String, type: 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(id:, type:) ⇒ BaseWebhookEvent
Returns a new instance of BaseWebhookEvent.
|
|
# File 'lib/imagekitio/models/base_webhook_event.rb', line 18
|
Instance Attribute Details
#id ⇒ String
Unique identifier for the event.
10 |
# File 'lib/imagekitio/models/base_webhook_event.rb', line 10 required :id, String |
#type ⇒ String
The type of webhook event.
16 |
# File 'lib/imagekitio/models/base_webhook_event.rb', line 16 required :type, String |
Instance Method Details
#to_hash ⇒ { id: String, type: String }
12 |
# File 'sig/imagekitio/models/base_webhook_event.rbs', line 12
def to_hash: -> { id: String, type: String }
|