module LocalCallingGuide

Constants

VERSION

Public Class Methods

get_results(url) click to toggle source
# 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

Private Instance Methods

get_results(url) click to toggle source
# 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