Sha256: 6bb7c6b0b3e11484645f74979dfdbf377dccb4b537aaa21af260e28b8fbdb5a5

Contents?: true

Size: 421 Bytes

Versions: 10

Compression:

Stored size: 421 Bytes

Contents

require "fog/core/collection"
require "fog/ovirt/models/compute/affinity_group"

module Fog
  module Ovirt
    class Compute
      class AffinityGroups < Fog::Collection
        model Fog::Ovirt::Compute::AffinityGroup

        def all(filters = {})
          load service.list_affinity_groups(filters)
        end

        def get(id)
          new service.get_affinity_group(id)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-ovirt-2.0.3 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-2.0.2 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-2.0.1 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-2.0.0 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-1.2.5 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-1.2.4 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-1.2.3 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-1.2.2 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-1.2.1 lib/fog/ovirt/models/compute/affinity_groups.rb
fog-ovirt-1.2.0 lib/fog/ovirt/models/compute/affinity_groups.rb