# File lib/fog/serverlove/models/compute/image.rb, line 49 def allowed_attributes allowed = [:name, :size] attributes.select {|k,v| allowed.include? k} end
# File lib/fog/serverlove/models/compute/image.rb, line 43 def destroy requires :identity service.destroy_image(identity) self end
# File lib/fog/serverlove/models/compute/image.rb, line 34 def load_standard_image(standard_image_uuid) requires :identity service.load_standard_image(identity, standard_image_uuid) end
# File lib/fog/serverlove/models/compute/image.rb, line 39 def ready? status.upcase == 'ACTIVE' end
# File lib/fog/serverlove/models/compute/image.rb, line 19 def save attributes = {} if(identity) attributes = service.update_image(identity, allowed_attributes).body else requires :name requires :size attributes = service.create_image(allowed_attributes).body end merge_attributes(attributes) self end
Generated with the Darkfish Rdoc Generator 2.