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