Class: VoiceML::ConversationsV1ServiceConversation
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceConversation
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ServiceConversation — service-scoped Conversation; field-identical to ConversationsV1Conversation. Twilio's service_conversation mirrors conversation.
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid chat_service_sid messaging_service_sid sid friendly_name unique_name attributes state date_created date_updated timers url links bindings ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ServiceConversation
constructor
A new instance of ConversationsV1ServiceConversation.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ServiceConversation
Returns a new instance of ConversationsV1ServiceConversation.
331 332 333 |
# File 'lib/voiceml/models/conversations_v1.rb', line 331 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
334 |
# File 'lib/voiceml/models/conversations_v1.rb', line 334 def self.from_hash(h); h.nil? ? nil : new(h); end |