Class: Fog::Compute::Rackspace::Images
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Rackspace::Images
- Defined in:
- lib/fog/rackspace/models/compute/images.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/rackspace/models/compute/images.rb', line 12 def all data = service.list_images_detail.body['images'] models = load(data) if server self.replace(self.select {|image| image.server_id == server.id}) else models end end |