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

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

Instance Method Summary collapse

Instance Method Details

#allObject



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

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

#get(image_id) ⇒ Object



15
16
17
18
# File 'lib/fog/serverlove/models/compute/images.rb', line 15

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