Class: Dinie::WebhookSecretRotation
- Inherits:
-
Internal::Model
- Object
- Internal::Model
- Dinie::WebhookSecretRotation
- Defined in:
- sig/dinie/generated/types/webhook_endpoint.rbs,
lib/dinie/generated/types/webhook_secret_rotation.rb
Overview
The result of webhook_endpoints.rotate_secret — the new signing secret + old-secret deadline.
Constant Summary
Constants inherited from Internal::Model
Internal::Model::REDACTED_ATTRIBUTES
Instance Attribute Summary collapse
-
#id ⇒ webhook_endpoint_id
readonly
Returns the value of attribute id.
-
#previous_secret_expires_at ⇒ Integer
readonly
Returns the value of attribute previous_secret_expires_at.
-
#secret ⇒ String
readonly
Returns the value of attribute secret.
Class Method Summary collapse
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
#id ⇒ webhook_endpoint_id (readonly)
Returns the value of attribute id.
30 31 32 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 30 def id @id end |
#previous_secret_expires_at ⇒ Integer (readonly)
Returns the value of attribute previous_secret_expires_at.
31 32 33 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 31 def previous_secret_expires_at @previous_secret_expires_at end |
#secret ⇒ String (readonly)
Returns the value of attribute secret.
32 33 34 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 32 def secret @secret end |
Class Method Details
.deserialize(raw) ⇒ WebhookSecretRotation
9 10 11 12 13 14 15 |
# File 'lib/dinie/generated/types/webhook_secret_rotation.rb', line 9 def self.deserialize(raw) new( id: raw[:id], previous_secret_expires_at: raw[:previous_secret_expires_at], secret: raw[:secret] ) end |
.serialize_rotate_secret ⇒ Hash[Symbol, untyped]
36 |
# File 'sig/dinie/generated/types/webhook_endpoint.rbs', line 36 def self.serialize_rotate_secret: (?expire_current_in: Integer) -> Hash[Symbol, untyped] |