Class: Messaging::Channels::SMS
- Inherits:
-
Message
- Object
- Message
- Messaging::Channels::SMS
- Defined in:
- lib/vonage/messaging/channels/sms.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SMS
constructor
A new instance of SMS.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/vonage/messaging/channels/sms.rb', line 5 def data @data end |