Sha256: 63103bbee8b9bd8cff576d00193313750cbf7a324fd6c4d8dc802169e3a97496
Contents?: true
Size: 381 Bytes
Versions: 4
Compression:
Stored size: 381 Bytes
Contents
module Smartdc module Api class Datacenters attr_reader :request def initialize(options) @request = Smartdc::Request.new(options) end def read(id) raise ArgumentError unless id request.get('my/datacenters/' + id.to_s) end def all(query={}) request.get('my/datacenters', query) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
smartdc-1.2.2 | lib/smartdc/api/datacenters.rb |
smartdc-1.2.1 | lib/smartdc/api/datacenters.rb |
smartdc-1.1.1 | lib/smartdc/api/datacenters.rb |
smartdc-1.0.1 | lib/smartdc/api/datacenters.rb |