Skip to content

Commit

Permalink
add mobile.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ggklf committed Aug 12, 2012
1 parent f762b3e commit 7aed4c7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions lib/knykode.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'knykode','postcode')
require File.join(File.expand_path(File.dirname(__FILE__)), 'knykode','mobile')

#p = Knykode::Postcode.new
#puts p.postcode("Kerugoya")
# working with the postcode class
#posta = Knykode::Postcode.new

#get a postcode given a post office name
#puts posta.postcode("Kerugoya") #10300

#mobile = Knykode::Mobile.new

#list an array of available carriers
#puts mobile.carriers #["Safaricom", "Airtel", "Yu", "Orange", "Telkom"]

#list prefix codes for safaricom
#safaricom = Knykode::Mobile::Safaricom.new
#puts safaricom.prefixes

0 comments on commit 7aed4c7

Please sign in to comment.