Class: AfricasTalking::Initialize
- Inherits:
-
Object
- Object
- AfricasTalking::Initialize
- Defined in:
- lib/AfricasTalking.rb
Instance Attribute Summary collapse
-
#apikey ⇒ Object
Returns the value of attribute apikey.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
- #airtime ⇒ Object
- #application ⇒ Object
-
#initialize(username, apikey) ⇒ Initialize
constructor
A new instance of Initialize.
- #payments ⇒ Object
- #sms ⇒ Object
- #token ⇒ Object
- #voice ⇒ Object
Constructor Details
#initialize(username, apikey) ⇒ Initialize
Returns a new instance of Initialize.
14 15 16 17 |
# File 'lib/AfricasTalking.rb', line 14 def initialize username, apikey @username = username @apikey = apikey end |
Instance Attribute Details
#apikey ⇒ Object
Returns the value of attribute apikey.
13 14 15 |
# File 'lib/AfricasTalking.rb', line 13 def apikey @apikey end |
#username ⇒ Object
Returns the value of attribute username.
13 14 15 |
# File 'lib/AfricasTalking.rb', line 13 def username @username end |
Instance Method Details
#airtime ⇒ Object
27 28 29 |
# File 'lib/AfricasTalking.rb', line 27 def airtime return Airtime.new @username, @apikey end |
#application ⇒ Object
39 40 41 |
# File 'lib/AfricasTalking.rb', line 39 def application return Application.new @username, @apikey end |
#payments ⇒ Object
23 24 25 |
# File 'lib/AfricasTalking.rb', line 23 def payments return Payments.new @username, @apikey end |
#sms ⇒ Object
19 20 21 |
# File 'lib/AfricasTalking.rb', line 19 def sms return Sms.new @username, @apikey end |