Class: ModerationAPI::Models::WebhookSecretRetrieveResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookSecretRetrieveResponse
- Defined in:
- lib/moderation_api/models/webhook_secret_retrieve_response.rb,
sig/moderation_api/models/webhook_secret_retrieve_response.rbs
Overview
Instance Attribute Summary collapse
-
#secret ⇒ String
The signing secret for this project.
Instance Method Summary collapse
-
#initialize(secret:) ⇒ WebhookSecretRetrieveResponse
constructor
Some parameter documentations has been truncated, see WebhookSecretRetrieveResponse for more details.
- #to_hash ⇒ { secret: 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(secret:) ⇒ WebhookSecretRetrieveResponse
Some parameter documentations has been truncated, see ModerationAPI::Models::WebhookSecretRetrieveResponse for more details.
|
|
# File 'lib/moderation_api/models/webhook_secret_retrieve_response.rb', line 15
|
Instance Attribute Details
#secret ⇒ String
The signing secret for this project. Every webhook delivery is signed with
HMAC-SHA256 over the raw JSON body, hex-encoded in the modapi-signature
header.
13 |
# File 'lib/moderation_api/models/webhook_secret_retrieve_response.rb', line 13 required :secret, String |
Instance Method Details
#to_hash ⇒ { secret: String }
10 |
# File 'sig/moderation_api/models/webhook_secret_retrieve_response.rbs', line 10
def to_hash: -> { secret: String }
|