class Scalingo::Auth::Keys
Public Instance Methods
all(headers = nil, &block)
click to toggle source
# File lib/scalingo/auth/keys.rb, line 5 def all(headers = nil, &block) data = nil response = connection.get( "keys", data, headers, &block ) unpack(:keys) { response } end
create(payload, headers = nil, &block)
click to toggle source
# File lib/scalingo/auth/keys.rb, line 31 def create(payload, headers = nil, &block) data = {key: payload} response = connection.post( "keys", data, headers, &block ) unpack(:key) { response } end
destroy(id, headers = nil, &block)
click to toggle source
# File lib/scalingo/auth/keys.rb, line 44 def destroy(id, headers = nil, &block) data = nil response = connection.delete( "keys/#{id}", data, headers, &block ) unpack { response } end
show(id, headers = nil, &block)
click to toggle source
# File lib/scalingo/auth/keys.rb, line 18 def show(id, headers = nil, &block) data = nil response = connection.get( "keys/#{id}", data, headers, &block ) unpack(:key) { response } end