Class: Sendly::WebhookCreatedResponse

Inherits:
Webhook
  • Object
show all
Defined in:
lib/sendly/types.rb

Overview

Webhook with secret (returned on creation)

Constant Summary

Constants inherited from Webhook

Sendly::Webhook::CIRCUIT_STATES, Sendly::Webhook::MODES

Instance Attribute Summary collapse

Attributes inherited from Webhook

#api_version, #circuit_opened_at, #circuit_state, #created_at, #description, #events, #failure_count, #id, #is_active, #last_delivery_at, #last_failure_at, #metadata, #mode, #success_rate, #successful_deliveries, #total_deliveries, #updated_at, #url

Instance Method Summary collapse

Methods inherited from Webhook

#active?, #circuit_open?, #to_h

Constructor Details

#initialize(data) ⇒ WebhookCreatedResponse

Returns a new instance of WebhookCreatedResponse.



306
307
308
309
# File 'lib/sendly/types.rb', line 306

def initialize(data)
  super(data)
  @secret = data["secret"]
end

Instance Attribute Details

#secretObject (readonly)

Returns the value of attribute secret.



304
305
306
# File 'lib/sendly/types.rb', line 304

def secret
  @secret
end