Class: VoiceML::ConversationsV1ServiceNotification

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

Overview

ConversationsV1ServiceNotification — per-service push-notification config singleton.

Constant Summary collapse

ATTRIBUTES =
%w[
  account_sid chat_service_sid new_message added_to_conversation
  removed_from_conversation log_enabled url
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1ServiceNotification

Returns a new instance of ConversationsV1ServiceNotification.



592
593
594
# File 'lib/voiceml/models/conversations_v1.rb', line 592

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

Class Method Details

.from_hash(h) ⇒ Object



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

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