Sha256: 9d9accaa9320f7ed326424581c93b648115cf77d43f353c27db84dc27ad6752b
Contents?: true
Size: 523 Bytes
Versions: 61
Compression:
Stored size: 523 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
61 entries across 61 versions & 6 rubygems