Class: PostmanMta::LabelsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/postman_mta/labels_controller.rb

Constant Summary

Constants inherited from ApplicationController

ApplicationController::MODULES

Instance Method Summary collapse

Instance Method Details

#createObject



7
8
9
# File 'app/controllers/postman_mta/labels_controller.rb', line 7

def create
  render label.create(label_params)
end

#destroyObject



15
16
17
# File 'app/controllers/postman_mta/labels_controller.rb', line 15

def destroy
  render label.destroy(params[:id])
end

#indexObject



3
4
5
# File 'app/controllers/postman_mta/labels_controller.rb', line 3

def index
  render label.index(label_params)
end

#updateObject



11
12
13
# File 'app/controllers/postman_mta/labels_controller.rb', line 11

def update
  render label.update(params[:id], label_params)
end