class Fog::Compute::Packet::Snapshot
Public Class Methods
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/fog/compute/packet/models/snapshot.rb, line 14 def initialize(attributes = {}) super end
Public Instance Methods
destroy(volume_id)
click to toggle source
# File lib/fog/compute/packet/models/snapshot.rb, line 24 def destroy(volume_id) requires :id response = service.delete_snapshot(volume_id, id) true if response.status == 204 end
save()
click to toggle source
# File lib/fog/compute/packet/models/snapshot.rb, line 18 def save requires :storage_id response = service.create_snapshot(storage_id) true if response.status == 202 end