Sha256: 40ec6e8843162a8e9090f3025a7a9d32acee7fa5897b72b5d971ffe5bc0a1726

Contents?: true

Size: 792 Bytes

Versions: 3

Compression:

Stored size: 792 Bytes

Contents

require 'fog/vcloud_director/parsers/compute/vm_parser_helper'

module Fog
  module Parsers
    module Compute
      module VcloudDirector
        class Vm < VcloudDirectorParser
          include VmParserHelper

          def reset
            @in_operating_system = false
            @in_children = false
            @resource_type = nil
            @response = { :vm => initialize_vm }
            @links = []
          end

          def start_element(name, attributes)
            super
            return parse_vm_attributes(attributes, @response[:vm]) if name == 'Vm'
            parse_start_element name, attributes, @response[:vm]
          end

          def end_element(name)
            parse_end_element name, @response[:vm]
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-vcloud-director-0.2.2 lib/fog/vcloud_director/parsers/compute/vm.rb
fog-vcloud-director-0.2.1 lib/fog/vcloud_director/parsers/compute/vm.rb
fog-vcloud-director-0.2.0 lib/fog/vcloud_director/parsers/compute/vm.rb