Class: Dinie::WebhookEndpointWithSecret
- Inherits:
-
WebhookEndpoint
- Object
- Internal::Model
- WebhookEndpoint
- Dinie::WebhookEndpointWithSecret
- Defined in:
- sig/dinie/generated/types/webhook_endpoint.rbs,
lib/dinie/generated/types/webhook_endpoint.rb
Overview
The creation-only endpoint — WebhookEndpoint plus secret (the contract's allOf).
Constant Summary
Constants inherited from Internal::Model
Internal::Model::REDACTED_ATTRIBUTES
Instance Attribute Summary collapse
-
#secret ⇒ String
readonly
Returns the value of attribute secret.
Attributes inherited from WebhookEndpoint
#created_at, #description, #events, #id, #status, #updated_at, #url
Class Method Summary collapse
Methods inherited from WebhookEndpoint
serialize_create, serialize_update
Methods inherited from Internal::Model
#==, attribute, attributes, #deconstruct_keys, #hash, inherited, #initialize, #inspect, #to_h
Constructor Details
This class inherits a constructor from Dinie::Internal::Model
Instance Attribute Details
#secret ⇒ String (readonly)
Returns the value of attribute secret.
23 24 25 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 23 def secret @secret end |
Class Method Details
.deserialize(raw) ⇒ WebhookEndpointWithSecret
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/dinie/generated/types/webhook_endpoint.rb', line 39 def self.deserialize(raw) new( created_at: raw[:created_at], description: raw[:description], events: raw[:events], id: raw[:id], secret: raw[:secret], status: raw[:status], updated_at: raw[:updated_at], url: raw[:url] ) end |