Sha256: 7dc1e5002e74a68ced1fac84d4efa1d350c99ae62ab69edac2378554ac5129a7
Contents?: true
Size: 519 Bytes
Versions: 29
Compression:
Stored size: 519 Bytes
Contents
require 'fog/core/collection' require 'fog/hp/models/compute/image' module Fog module Compute class HP class Images < Fog::Collection model Fog::Compute::HP::Image def all data = service.list_images_detail.body['images'] load(data) self end def get(image_id) data = service.get_image_details(image_id).body['image'] new(data) rescue Fog::Compute::HP::NotFound nil end end end end end
Version data entries
29 entries across 29 versions & 4 rubygems