1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/terremark/parser.rb
2013-01-07 21:01:22 +00:00

19 lines
348 B
Ruby

module Fog
module Terremark
module Shared
module Parser
remove_method :parse
def parse(data)
case data['type']
when 'application/vnd.vmware.vcloud.vApp+xml'
servers.new(data.merge!(:service => self))
else
data
end
end
end
end
end
end