Class: Onfleet::Administrators
- Inherits:
-
Object
- Object
- Onfleet::Administrators
- Defined in:
- lib/resources/administrators.rb
Overview
Administrators are users who perform actions via the dashboard.
Instance Method Summary collapse
- #create(config, body) ⇒ Object
- #delete(config, id) ⇒ Object
- #list(config) ⇒ Object
- #update(config, id, body) ⇒ Object
Instance Method Details
#create(config, body) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/resources/administrators.rb', line 6 def create(config, body) method = 'post' path = 'admins' Onfleet.request(config, method.to_sym, path, body.to_json) end |
#delete(config, id) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/resources/administrators.rb', line 27 def delete(config, id) method = 'delete' path = "admins/#{id}" Onfleet.request(config, method.to_sym, path) end |