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