class Fog::Compute::RackspaceV2::Attachment

Public Instance Methods

destroy() click to toggle source
# File lib/fog/rackspace/models/compute_v2/attachment.rb, line 20
def destroy
  requires :server, :identity
  connection.delete_attachment(server.identity, identity)
  true
end
save() click to toggle source
# File lib/fog/rackspace/models/compute_v2/attachment.rb, line 13
def save
  requires :server, :identity, :device
  data = connection.attach_volume(server.identity, identity, device)
  merge_attributes(data.body['volumeAttachment'])
  true
end

Private Instance Methods

server() click to toggle source
# File lib/fog/rackspace/models/compute_v2/attachment.rb, line 28
def server
  collection.server
end