Class: Fog::Compute::OpenStack::VolumeAttachments
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::OpenStack::VolumeAttachments
- Defined in:
- lib/fog/compute/openstack/models/volume_attachments.rb
Instance Method Summary collapse
Instance Method Details
#get(server_id) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/fog/compute/openstack/models/volume_attachments.rb', line 9 def get(server_id) if server_id puts service.(server_id).body load(service.(server_id).body['volumeAttachments']) end rescue Fog::Compute::OpenStack::NotFound nil end |