Sha256: 9d67e494e5b7aadd88824c91b2009602ca1f710f57bd1974ccbe77d326ccb2a1

Contents?: true

Size: 401 Bytes

Versions: 4

Compression:

Stored size: 401 Bytes

Contents

module Fog
  module Parsers
    module XenServer
      class GetHosts < Fog::Parsers::XenServer::Base

        def reset
          @response = []
        end

        def parse( data )
          parser = Fog::Parsers::XenServer::Base.new
          data.each_pair {|reference, host_hash| @response << parser.parse( host_hash ).merge(:reference => reference) }
        end

      end

    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-xenserver-0.0.1.alpha2 lib/fog/xenserver/parsers/get_hosts.rb
fog-xenserver-0.0.1.alpha lib/fog/xenserver/parsers/get_hosts.rb
fog-1.22.0 lib/fog/xenserver/parsers/get_hosts.rb
fog-1.21.0 lib/fog/xenserver/parsers/get_hosts.rb