Class: VoiceML::ConversationsV1Configuration

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

Overview

ConversationsV1Configuration — account-level Conversations defaults.

Constant Summary collapse

ATTRIBUTES =
%w[
  account_sid default_chat_service_sid default_messaging_service_sid
  default_inactive_timer default_closed_timer url links
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1Configuration

Returns a new instance of ConversationsV1Configuration.



199
200
201
# File 'lib/voiceml/models/conversations_v1.rb', line 199

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

Class Method Details

.from_hash(h) ⇒ Object



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

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