Sha256: 5d7ef7ffff1143f0e5f0dfd4e771fb9189143243b00c7104fc91b8c1c5b44cb7
Contents?: true
Size: 674 Bytes
Versions: 8
Compression:
Stored size: 674 Bytes
Contents
module Fog module Rackspace class Servers class Image < Fog::Model identity :id attribute :name attribute :created attribute :updated attribute :status attribute :server_id, 'serverId' def server=(new_server) requires :id @server_id = new_server.id end def destroy requires :id connection.delete_image(@id) true end def save requires :server_id data = connection.create_server(@server_id) merge_attributes(data.body['image']) true end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems