Class: Fog::Compute::Joyent::Datacenters
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Joyent::Datacenters
- Defined in:
- lib/fog/joyent/models/compute/datacenters.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
12 13 14 15 |
# File 'lib/fog/joyent/models/compute/datacenters.rb', line 12 def all data = service.list_datacenters().body.map {|k,v| {:name => k, :url => v}} load(data) end |
#get(id) ⇒ Object
17 18 19 |
# File 'lib/fog/joyent/models/compute/datacenters.rb', line 17 def get(id) all[id] end |