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



19
20
21
22
23
24
25
26
# File 'lib/fog/terremark/shared.rb', line 19

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