class Fog::Compute::RackspaceV2::Attachments

Attributes

server[RW]

Public Instance Methods

all() click to toggle source
# File lib/fog/rackspace/models/compute_v2/attachments.rb, line 13
def all
  data = connection.list_attachments(server.id).body['volumeAttachments']
  load(data)
end
get(volume_id) click to toggle source
# File lib/fog/rackspace/models/compute_v2/attachments.rb, line 18
def get(volume_id)
  data = connection.get_attachment(server.id, volume_id).body['volumeAttachment']
  data && new(data)
end