Class: Fog::Compute::Serverlove::Images

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

Instance Method Summary collapse

Instance Method Details

#allObject



7
8
9
10
# File 'lib/fog/compute/serverlove/models/images.rb', line 7

def all
  data = service.get_images.body
  load(data)
end

#get(image_id) ⇒ Object



12
13
14
15
# File 'lib/fog/compute/serverlove/models/images.rb', line 12

def get(image_id)
  data = service.get_image(image_id).body
  new(data)
end