Class: VoiceML::ConversationsV1ConfigurationWebhook
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ConfigurationWebhook
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ConfigurationWebhook — account-global webhook config.
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid method filters pre_webhook_url post_webhook_url target url ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ConfigurationWebhook
constructor
A new instance of ConversationsV1ConfigurationWebhook.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ConfigurationWebhook
Returns a new instance of ConversationsV1ConfigurationWebhook.
211 212 213 |
# File 'lib/voiceml/models/conversations_v1.rb', line 211 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
214 |
# File 'lib/voiceml/models/conversations_v1.rb', line 214 def self.from_hash(h); h.nil? ? nil : new(h); end |