Sha256: 2c459c2dcc604ddeb94164df97b9f78c646cf3868a8e5a3ff5487fa19dfca1e7
Contents?: true
Size: 479 Bytes
Versions: 65
Compression:
Stored size: 479 Bytes
Contents
require 'fog/core/collection' require 'fog/ibm/models/compute/image' module Fog module Compute class IBM class Images < Fog::Collection model Fog::Compute::IBM::Image def all load(service.list_images.body['images']) end def get(image_id) begin new(service.get_image(image_id).body) rescue Fog::Compute::IBM::NotFound nil end end end end end end
Version data entries
65 entries across 65 versions & 6 rubygems