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