Class: Fog::Compute::Packet::Volumes
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Packet::Volumes
- Defined in:
- lib/fog/compute/packet/models/volumes.rb
Overview
Volumes Collection
Instance Method Summary collapse
Instance Method Details
#all(project_id, params = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/fog/compute/packet/models/volumes.rb', line 10 def all(project_id, params = {}) response = service.list_volumes(project_id, params) load(response.body["volumes"]) end |
#get(volume_id) ⇒ Object
16 17 18 19 |
# File 'lib/fog/compute/packet/models/volumes.rb', line 16 def get(volume_id) response = service.get_volume(volume_id) new(response.body) end |