Sha256: 1e42ff1a981611235906ff18fd1ade160c221c1b753527f8ecd6c5572f9af1c1
Contents?: true
Size: 589 Bytes
Versions: 9
Compression:
Stored size: 589 Bytes
Contents
module Fog module Ovirt class Compute class V4 class Real def list_instance_types(filters = {}) client.system_service.instance_types_service.list(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 OvirtSDK4::Reader.read(t.to_s) end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems