Sha256: ea6dcba14e39b9d0f2fe283c3378f8bf6709d9bfaa9173b16c6e22219d3dce48
Contents?: true
Size: 716 Bytes
Versions: 5
Compression:
Stored size: 716 Bytes
Contents
require_relative '../onfleet' module Onfleet # Administrators are users who perform actions via the dashboard. class Administrators def create(config, body) method = 'post' path = 'admins' Onfleet.request(config, method.to_sym, path, body.to_json) end def list(config) method = 'get' path = 'admins' Onfleet.request(config, method.to_sym, path) end def update(config, id, body) method = 'put' path = "admins/#{id}" Onfleet.request(config, method.to_sym, path, body.to_json) end def delete(config, id) method = 'delete' path = "admins/#{id}" Onfleet.request(config, method.to_sym, path) end end end
Version data entries
5 entries across 5 versions & 1 rubygems