Class: Gupshup::WhatsApp
- Inherits:
-
Object
- Object
- Gupshup::WhatsApp
- Defined in:
- lib/gupshup_whatsapp.rb
Instance Attribute Summary collapse
-
#apikey ⇒ Object
Returns the value of attribute apikey.
-
#app ⇒ Object
Returns the value of attribute app.
Instance Method Summary collapse
-
#initialize(app, apikey, version = '2', phone) ⇒ WhatsApp
constructor
A new instance of WhatsApp.
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
#apikey ⇒ Object
Returns the value of attribute apikey.
32 33 34 |
# File 'lib/gupshup_whatsapp.rb', line 32 def apikey @apikey end |
#app ⇒ Object
Returns the value of attribute app.
32 33 34 |
# File 'lib/gupshup_whatsapp.rb', line 32 def app @app end |