class Fog::Compute::ProfitBricks::Datacenters
Public Instance Methods
all()
click to toggle source
# File lib/fog/profitbricks/models/compute/datacenters.rb, line 11 def all result = service.get_all_datacenters load(result.body['items'].each {|dc| flatten(dc)}) end
get(id)
click to toggle source
# File lib/fog/profitbricks/models/compute/datacenters.rb, line 17 def get(id) datacenter = service.get_datacenter(id).body Excon::Errors new(flatten(datacenter)) rescue Excon::Errors::NotFound nil end