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

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

Instance Method Summary collapse

Instance Method Details

#parse(data) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/fog/terremark/parser.rb', line 6

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