Class: VoiceML::ConversationsV1Conversation

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

Overview

ConversationsV1Conversation — CH....

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

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1Conversation

Returns a new instance of ConversationsV1Conversation.



25
26
27
# File 'lib/voiceml/models/conversations_v1.rb', line 25

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

Class Method Details

.from_hash(h) ⇒ Object



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

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