Class: VoiceML::ConversationsV1ServiceConversationScopedWebhook

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

Overview

ConversationsV1ServiceConversationScopedWebhook — WH..., scoped to a Service.

Constant Summary collapse

ATTRIBUTES =
%w[
  sid account_sid chat_service_sid conversation_sid target url configuration
  date_created date_updated
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1ServiceConversationScopedWebhook

Returns a new instance of ConversationsV1ServiceConversationScopedWebhook.



427
428
429
# File 'lib/voiceml/models/conversations_v1.rb', line 427

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

Class Method Details

.from_hash(h) ⇒ Object



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

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