Class: VoiceML::ConversationsV1ConversationScopedWebhook
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ConversationScopedWebhook
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ConversationScopedWebhook — WH....
Constant Summary collapse
- ATTRIBUTES =
%w[ sid account_sid conversation_sid target url configuration date_created date_updated ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ConversationScopedWebhook
constructor
A new instance of ConversationsV1ConversationScopedWebhook.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ConversationScopedWebhook
Returns a new instance of ConversationsV1ConversationScopedWebhook.
112 113 114 |
# File 'lib/voiceml/models/conversations_v1.rb', line 112 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
115 |
# File 'lib/voiceml/models/conversations_v1.rb', line 115 def self.from_hash(h); h.nil? ? nil : new(h); end |