Class: Gupshup::WhatsApp

Inherits:
Object
  • Object
show all
Defined in:
lib/gupshup_whatsapp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, apikey, version = '2', phone) ⇒ WhatsApp

Returns a new instance of WhatsApp.



33
34
35
36
37
38
# File 'lib/gupshup_whatsapp.rb', line 33

def initialize(app, apikey, version = '2', phone)
  @app = app
  @apikey = apikey
  @version = version
  @phone = phone
end

Instance Attribute Details

#apikeyObject

Returns the value of attribute apikey.



32
33
34
# File 'lib/gupshup_whatsapp.rb', line 32

def apikey
  @apikey
end

#appObject

Returns the value of attribute app.



32
33
34
# File 'lib/gupshup_whatsapp.rb', line 32

def app
  @app
end