Module: Smartdc::Api::Datacenters

Included in:
Client
Defined in:
lib/smartdc/api/datacenters.rb

Instance Method Summary collapse

Instance Method Details

#datacenter(id) ⇒ Object



7
8
9
# File 'lib/smartdc/api/datacenters.rb', line 7

def datacenter(id)
  get 'my/datacenters/' + id.to_s
end

#datacenters(params = {}) ⇒ Object



3
4
5
# File 'lib/smartdc/api/datacenters.rb', line 3

def datacenters(params={})
  get 'my/datacenters', params
end