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