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