# File lib/fog/hp/models/compute_v2/volume_attachment.rb, line 13definitialize(new_attributes = {})
super(new_attributes)
# server_id needs to be the same as the server from the attachments collectionserver_id = server.idifserverselfend
Public Instance Methods
destroy()click to toggle source
# File lib/fog/hp/models/compute_v2/volume_attachment.rb, line 27defdestroyrequires:server_id, :volume_idservice.detach_volume(server_id, volume_id)
trueend