module Fog module Parsers module Slicehost module DNS class GetRecord < Fog::Parsers::Base def reset @response = { } end def end_element(name) case name when 'zone-id', 'ttl' @response[name] = @value.to_i when 'record-type', 'name', 'data', 'active', 'aux' @response[name] = @value end end end end end end end