class Vacuum::Parser

Constants

VERSION

Public Class Methods

parse(body) click to toggle source
# File lib/vacuum/parser.rb, line 10
def self.parse(body)
  document = Nokogiri::XML(body)
  name = document.root.name
  case name
  when 'ItemSearchResponse'
    ItemSearchResponse.new(document)
  else
    ParserError.new(name + ' is not implemented!')
  end
end