Method: Oodle::API#fetch_categories

Defined in:
lib/oodle.rb

#fetch_categories(raw = false) ⇒ Object



144
145
146
147
148
149
150
151
152
# File 'lib/oodle.rb', line 144

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