Class: Fog::Compute::Ovirt::AffinityGroup

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/ovirt/models/compute/affinity_group.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



15
16
17
# File 'lib/fog/ovirt/models/compute/affinity_group.rb', line 15

def destroy
  service.destroy_affinity_group(id)
end

#to_sObject



19
20
21
# File 'lib/fog/ovirt/models/compute/affinity_group.rb', line 19

def to_s
  name
end

#vmsObject



11
12
13
# File 'lib/fog/ovirt/models/compute/affinity_group.rb', line 11

def vms
  id.nil? ? [] : service.list_affinity_group_vms(id)
end