Sha256: e48782e6c769bd8fb67c28d3f38c705333244216c9cdd8b1ffc3ca857d6470e2
Contents?: true
Size: 563 Bytes
Versions: 6
Compression:
Stored size: 563 Bytes
Contents
module Fog module Ovirt class Compute class V3 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 end
Version data entries
6 entries across 6 versions & 1 rubygems