Module: LocalCallingGuide
- Defined in:
- lib/localcallingguide.rb,
lib/localcallingguide/version.rb
Defined Under Namespace
Classes: Distance, LocalExchange, LocalPrefix, Prefix, RateCentre
Constant Summary collapse
- VERSION =
"0.0.2".freeze
Class Method Summary collapse
Class Method Details
.get_results(url) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/localcallingguide.rb', line 6 def get_results(url) data = URI.open(url).read XmlSimple.xml_in(data, 'ForceArray' => false, 'KeyToSymbol' => false) # It would be nice to use KeyToSymbol but I have to figure out how to # handle hyphened keys, i.e. "company-name" end |