Sha256: d446e865118b05afa1f23c163d1fc3a922231e6e52fa011c1b639aff7f1084e3
Contents?: true
Size: 531 Bytes
Versions: 65
Compression:
Stored size: 531 Bytes
Contents
require 'fog/core/collection' require 'fog/clodo/models/compute/image' module Fog module Compute class Clodo class Images < Fog::Collection model Fog::Compute::Clodo::Image def all data = service.list_images_detail.body['images'] load(data) end def get(image_id) image = service.get_image_details(image_id).body['image'] new(image) if image rescue Fog::Compute::Clodo::NotFound nil end end end end end
Version data entries
65 entries across 65 versions & 6 rubygems