Sha256: 874f47a923f648436754ed6a87ca2a12cea9772e78cc6626bdafe3e809879321
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
module Smartdc module Api class Packages attr_reader :request, :id def initialize(request, id=nil) @request = request @id = id end def read raise ArgumentError unless id request.get('my/packages/' + id.to_s) end def find(params={}) request.get('my/packages', params) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smartdc-0.4.0 | lib/smartdc/api/packages.rb |
smartdc-0.3.0 | lib/smartdc/api/packages.rb |