Sha256: 1438488ebad9309a75f879c5c3a9bb5ee2828dd2e595ab0347cf97544de0db1f
Contents?: true
Size: 573 Bytes
Versions: 6
Compression:
Stored size: 573 Bytes
Contents
module Fog module Ovirt class Compute class V3 class Real def list_affinity_groups(filters = {}) client.affinity_groups(filters).map { |ovirt_obj| ovirt_attrs ovirt_obj } end end class Mock def list_affinity_groups(_filters = {}) xml = read_xml("affinitygroups.xml") Nokogiri::XML(xml).xpath("/affinity_groups/affinity_group").map do |ag| ovirt_attrs OVIRT::AffinityGroup.new(self, ag) end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems