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

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

Instance Method Summary collapse

Instance Method Details

#parse(data) ⇒ Object



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

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