Class: Messaging::Channels::Viber
- Inherits:
-
Message
- Object
- Message
- Messaging::Channels::Viber
- Defined in:
- lib/vonage/messaging/channels/viber.rb
Constant Summary collapse
- MESSAGE_TYPES =
['text', 'image', 'video', 'file']
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Viber
constructor
A new instance of Viber.
Constructor Details
#initialize(attributes = {}) ⇒ Viber
Returns a new instance of Viber.
9 10 11 12 13 14 15 16 |
# File 'lib/vonage/messaging/channels/viber.rb', line 9 def initialize(attributes = {}) @type = attributes.fetch(:type, nil) @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.
7 8 9 |
# File 'lib/vonage/messaging/channels/viber.rb', line 7 def data @data end |