Sha256: f0a1a94c0d515f9522ef8d7bbeecdfe51b27f6d59d39d228e292cdcd34d458ee

Contents?: true

Size: 510 Bytes

Versions: 8

Compression:

Stored size: 510 Bytes

Contents

module Fog
  module Compute
    class Ovirt
      class Real
        def list_instance_types(filters = {})
          client.instance_types(filters).map {|ovirt_obj| ovirt_attrs ovirt_obj}
        end
      end
      class Mock
        def list_instance_types(filters = {})
          xml = read_xml 'instance_types.xml'
          Nokogiri::XML(xml).xpath('/instance_types/instance_type').map do |t|
            ovirt_attrs OVIRT::InstanceType::new(self, t)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fog-ovirt-0.1.3 lib/fog/ovirt/requests/compute/list_instance_types.rb
fog-ovirt-0.1.2 lib/fog/ovirt/requests/compute/list_instance_types.rb
fog-ovirt-0.1.1 lib/fog/ovirt/requests/compute/list_instance_types.rb
fog-ovirt-0.1.0 lib/fog/ovirt/requests/compute/list_instance_types.rb
fog-ovirt-0.0.1 lib/fog/ovirt/requests/compute/list_instance_types.rb
fog-1.41.0 lib/fog/ovirt/requests/compute/list_instance_types.rb
fog-1.40.0 lib/fog/ovirt/requests/compute/list_instance_types.rb
fog-1.39.0 lib/fog/ovirt/requests/compute/list_instance_types.rb