Class: Fog::Compute::XenServer::GpuGroups
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::XenServer::GpuGroups
- Defined in:
- lib/fog/xenserver/models/compute/gpu_groups.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/fog/xenserver/models/compute/gpu_groups.rb', line 10 def all(={}) data = service.get_records 'GPU_group' load(data) end |
#get(gpu_group_ref) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fog/xenserver/models/compute/gpu_groups.rb', line 15 def get( gpu_group_ref ) if gpu_group_ref && gpu_group = service.get_record( gpu_group_ref, 'GPU_group' ) new(gpu_group) else nil end end |