class Fog::Rackspace::BlockStorage::VolumeTypes

Public Instance Methods

all() click to toggle source
# File lib/fog/rackspace/models/block_storage/volume_types.rb, line 11
def all
  data = connection.list_volume_types.body['volume_types']
  load(data)
end
get(volume_type_id) click to toggle source
# File lib/fog/rackspace/models/block_storage/volume_types.rb, line 16
def get(volume_type_id)
  data = connection.get_volume_type(volume_type_id).body['volume_type']
  new(data)
rescue Fog::Rackspace::BlockStorage::NotFound
  nil
end