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