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