1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/fogdocker/models/compute/images.rb
2014-10-13 16:25:14 +01:00

24 lines
476 B
Ruby

require 'fog/core/collection'
require 'fog/fogdocker/models/compute/image'
module Fog
module Compute
class Fogdocker
class Images < Fog::Collection
model Fog::Compute::Fogdocker::Image
def all(filters = {})
load service.image_all(filters)
end
def get(id)
new service.image_get(id)
end
def image_search(query = {})
service.image_search(query)
end
end
end
end
end