Class: Fog::Compute::DigitalOcean::Images
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::DigitalOcean::Images
- Defined in:
- lib/fog/digitalocean/models/compute/images.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
11 12 13 |
# File 'lib/fog/digitalocean/models/compute/images.rb', line 11 def all load service.list_images.body['images'] end |
#get(id) ⇒ Object
15 16 17 18 19 |
# File 'lib/fog/digitalocean/models/compute/images.rb', line 15 def get(id) all.find { |f| f.id == id } rescue Fog::Errors::NotFound nil end |