Class: VoiceML::ConversationsV1ServiceConfiguration
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceConfiguration
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ServiceConfiguration — per-service singleton (fetch+update).
Constant Summary collapse
- ATTRIBUTES =
%w[ chat_service_sid default_conversation_creator_role_sid default_conversation_role_sid default_chat_service_role_sid url links reachability_enabled ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ServiceConfiguration
constructor
A new instance of ConversationsV1ServiceConfiguration.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ServiceConfiguration
Returns a new instance of ConversationsV1ServiceConfiguration.
579 580 581 |
# File 'lib/voiceml/models/conversations_v1.rb', line 579 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
582 |
# File 'lib/voiceml/models/conversations_v1.rb', line 582 def self.from_hash(h); h.nil? ? nil : new(h); end |