Class: Fog::Compute::Softlayer::Images

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/softlayer/models/compute/images.rb

Instance Method Summary collapse

Instance Method Details

#allObject

Returns an array of all public images.

Fog::Softlayer.images.all



22
23
24
25
# File 'lib/fog/softlayer/models/compute/images.rb', line 22

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



28
29
30
# File 'lib/fog/softlayer/models/compute/images.rb', line 28

def get(uuid)
  self.class.new(:service => service).all.detect {|image| image.id == uuid}
end