Method: Oodle::API#fetch_regions

Defined in:
lib/oodle.rb

#fetch_regions(raw = false) ⇒ Object



154
155
156
157
158
159
160
161
162
# File 'lib/oodle.rb', line 154

def fetch_regions(raw=false)
  xml = http_pull(REGIONS_URL)
  if raw
    xml
  else
    # parse into objects
    XmlSimple.xml_in xml, { 'ForceArray' => false, 'AttrPrefix' => true }
  end
end