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