Class: Fog::Compute::Softlayer::Images
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Softlayer::Images
- Defined in:
- lib/fog/softlayer/models/compute/images.rb
Instance Method Summary collapse
-
#all ⇒ Object
Returns an array of all public images.
-
#get(uuid) ⇒ Object
Used to retrieve an image.
Instance Method Details
#all ⇒ Object
Returns an array of all public images.
Fog::Softlayer.images.all
21 22 23 24 |
# File 'lib/fog/softlayer/models/compute/images.rb', line 21 def all load(service.request(:virtual_guest_block_device_template_group, :get_public_images).body) self end |
#get(uuid) ⇒ Object
Used to retrieve an image
27 28 29 |
# File 'lib/fog/softlayer/models/compute/images.rb', line 27 def get(uuid) self.class.new(:service => service).all.detect {|image| image.id == uuid} end |