Class: Vonage::Messaging::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/vonage/messaging/message.rb

Constant Summary collapse

CHANNELS =
{
  sms: Vonage::Messaging::Channels::SMS,
  mms: Vonage::Messaging::Channels::MMS,
  rcs: Vonage::Messaging::Channels::RCS,
  whatsapp: Vonage::Messaging::Channels::WhatsApp,
  messenger: Vonage::Messaging::Channels::Messenger,
  viber: Vonage::Messaging::Channels::Viber
}

Class Method Summary collapse

Class Method Details

.method_missing(method) ⇒ Object

Raises:



22
23
24
# File 'lib/vonage/messaging/message.rb', line 22

def self.method_missing(method)
  raise ClientError.new("Messaging channel must be one of the valid options.")
end