Class: PostmanMta::Route
- Inherits:
-
ApplicationModel
- Object
- ApplicationModel
- PostmanMta::Route
- Defined in:
- app/models/postman_mta/route.rb
Instance Method Summary collapse
Instance Method Details
#create(params = {}) ⇒ Object
11 12 13 |
# File 'app/models/postman_mta/route.rb', line 11 def create(params = {}) post('/routes', body: params) end |
#index ⇒ Object
3 4 5 |
# File 'app/models/postman_mta/route.rb', line 3 def index get('/routes') end |
#update(uuid, params = {}) ⇒ Object
7 8 9 |
# File 'app/models/postman_mta/route.rb', line 7 def update(uuid, params = {}) patch("/routes/#{uuid}", body: params) end |