Class: VoiceML::MessagingService

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

Overview

MessagingService — MG.... The feature-toggle fields are accept-and-echo on VoiceML; the service's operative role is gating scheduled sends.

Constant Summary collapse

ATTRIBUTES =
%w[
  sid account_sid friendly_name date_created date_updated
  inbound_request_url inbound_method fallback_url fallback_method status_callback
  sticky_sender mms_converter smart_encoding scan_message_content
  fallback_to_long_code area_code_geomatch synchronous_validation validity_period
  url usecase use_inbound_webhook_on_number
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ MessagingService

Returns a new instance of MessagingService.



25
26
27
# File 'lib/voiceml/models/messaging_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/messaging_v1.rb', line 28

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