class Fog::Compute::Joyent::Datacenters

Public Instance Methods

all() click to toggle source
# File lib/fog/joyent/models/compute/datacenters.rb, line 10
def all
  data = service.list_datacenters().body.map {|k,v| {:name => k, :url => v}}
  load(data)
end
get(id) click to toggle source
# File lib/fog/joyent/models/compute/datacenters.rb, line 15
def get(id)
  all[id]
end