Module: Fog::Terremark::Shared::Parser

Included in:
Vcloud::Mock, Vcloud::Real
Defined in:
lib/fog/terremark/shared.rb

Instance Method Summary collapse

Instance Method Details

#parse(data) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/fog/terremark/shared.rb', line 23

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