Class: VoiceML::ConversationsV1Service

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

Overview

ConversationsV1Service — IS.... Conversation service.

Constant Summary collapse

ATTRIBUTES =
%w[
  sid account_sid friendly_name date_created date_updated url links
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1Service

Returns a new instance of ConversationsV1Service.



308
309
310
# File 'lib/voiceml/models/conversations_v1.rb', line 308

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

Class Method Details

.from_hash(h) ⇒ Object



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

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