Class: VoiceML::ConversationsV1ServiceWebhookConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/voiceml/models/conversations_v1.rb

Overview

ConversationsV1ServiceWebhookConfiguration — per-service webhook config singleton.

Constant Summary collapse

ATTRIBUTES =
%w[
  account_sid chat_service_sid pre_webhook_url post_webhook_url
  filters method url
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1ServiceWebhookConfiguration

Returns a new instance of ConversationsV1ServiceWebhookConfiguration.



605
606
607
# File 'lib/voiceml/models/conversations_v1.rb', line 605

def initialize(attrs = {})
  ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) }
end

Class Method Details

.from_hash(h) ⇒ Object



608
# File 'lib/voiceml/models/conversations_v1.rb', line 608

def self.from_hash(h); h.nil? ? nil : new(h); end