module Fog module Parsers module Compute module Slicehost class GetFlavor < Fog::Parsers::Base def reset @response = {} end def end_element(name) case name when 'id', 'price', 'ram' @response[name] = value.to_i when 'name' @response[name] = value end end end end end end end