class AfricasTalking::Initialize
Attributes
apikey[RW]
username[RW]
Public Class Methods
new(username, apikey)
click to toggle source
# File lib/AfricasTalking.rb, line 18 def initialize username, apikey @username = username @apikey = apikey end
Public Instance Methods
airtime()
click to toggle source
# File lib/AfricasTalking.rb, line 31 def airtime return Airtime.new @username, @apikey end
application()
click to toggle source
# File lib/AfricasTalking.rb, line 43 def application return Application.new @username, @apikey end
payments()
click to toggle source
# File lib/AfricasTalking.rb, line 27 def payments return Payments.new @username, @apikey end
sms()
click to toggle source
# File lib/AfricasTalking.rb, line 23 def sms return Sms.new @username, @apikey end
token()
click to toggle source
# File lib/AfricasTalking.rb, line 39 def token return Token.new @username, @apikey end
voice()
click to toggle source
# File lib/AfricasTalking.rb, line 35 def voice return Voice.new @username, @apikey end