class Fog::Compute::ProfitBricks::Datacenters

Public Instance Methods

all() click to toggle source
# File lib/fog/profitbricks/models/compute/datacenters.rb, line 10
def all
    load (service.get_all_data_centers.body['getAllDataCentersResponse'])
end
get(id) click to toggle source
# File lib/fog/profitbricks/models/compute/datacenters.rb, line 14
def get(id)
    datacenter = service.get_data_center(id).body['getDataCenterResponse']
    Excon::Errors
    new(datacenter)
rescue Excon::Errors::NotFound
    nil
end