Method: Messaging::Channels::WhatsApp#initialize

Defined in:
lib/vonage/messaging/channels/whats_app.rb

#initialize(attributes = {}) ⇒ WhatsApp

Returns a new instance of WhatsApp.



9
10
11
12
13
14
15
16
# File 'lib/vonage/messaging/channels/whats_app.rb', line 9

def initialize(attributes = {})
  @type = attributes.fetch(:type, nil)
  @message = attributes.fetch(:message, nil)
  @opts = attributes.fetch(:opts, {})
  @data = {}

  after_initialize!
end