Sha256: de6ea49730c036e8345e568b1af8c8d1e92ea6407f679c87df00585ff3c2005a

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 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

1 entries across 1 versions & 1 rubygems

Version Path
smartdc-1.3.0 lib/smartdc/api/packages.rb