Class: LocalCallingGuide::Distance

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

Class Method Summary collapse

Class Method Details

.rc_dist(npa1, nxx1, npa2, nxx2) ⇒ Object



44
45
46
47
# File 'lib/localcallingguide.rb', line 44

def self.rc_dist(npa1, nxx1, npa2, nxx2)
  dist_data = LocalCallingGuide.get_results("http://www.localcallingguide.com/xmlrcdist.php?npa1=#{npa1}&nxx1=#{nxx1}&npa2=#{npa2}&nxx2=#{nxx2}")
  dist_data['rcdist']
end