Method: Messaging::Channels::SMS#initialize
- Defined in:
- lib/vonage/messaging/channels/sms.rb
#initialize(attributes = {}) ⇒ SMS
Returns a new instance of SMS.
7 8 9 10 11 12 13 14 |
# File 'lib/vonage/messaging/channels/sms.rb', line 7 def initialize(attributes = {}) @type = attributes.fetch(:type, 'text') @message = attributes.fetch(:message, nil) @opts = attributes.fetch(:opts, {}) @data = {} after_initialize! end |