Sha256: b5b31c5397fc941a4bd6fc29943e12f383aa2a1432e60cb27e52897bc19fc8a4
Contents?: true
Size: 482 Bytes
Versions: 4
Compression:
Stored size: 482 Bytes
Contents
require "fog/core/collection" require "fog/brightbox/models/compute/image" module Fog module Compute class Brightbox class Images < Fog::Collection model Fog::Compute::Brightbox::Image def all data = service.list_images load(data) end def get(identifier) data = service.get_image(identifier) new(data) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems