Sha256: 887abbdb45025be79f007f1784f35e7f8b66c03bdd4094150cb9d887fd8e5cb9
Contents?: true
Size: 607 Bytes
Versions: 33
Compression:
Stored size: 607 Bytes
Contents
require 'fog/collection' require 'fog/bluebox/models/image' module Fog module Bluebox module Collections def images(attributes = {}) Fog::Bluebox::Images.new({ :connection => self }.merge!(attributes)) end end class Images < Fog::Collection model Fog::Bluebox::Image def all data = connection.get_templates.body load(data) end def get(template_id) response = connection.get_template(template_id) new(response.body) rescue Fog::Bluebox::NotFound nil end end end end
Version data entries
33 entries across 33 versions & 2 rubygems