Method: Fog::HP::BlockStorage::Snapshots#get
- Defined in:
- lib/fog/hp/models/block_storage/snapshots.rb
#get(snapshot_id) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fog/hp/models/block_storage/snapshots.rb', line 15 def get(snapshot_id) if snapshot = service.get_snapshot_details(snapshot_id).body['snapshot'] new(snapshot) end rescue Fog::HP::BlockStorage::NotFound nil end |