Class: Messaging::Channels::SMS

Inherits:
Message
  • Object
show all
Defined in:
lib/vonage/messaging/channels/sms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/vonage/messaging/channels/sms.rb', line 5

def data
  @data
end