Class: Cangaroo::EndpointController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Cangaroo::EndpointController
- Defined in:
- app/controllers/cangaroo/endpoint_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/cangaroo/endpoint_controller.rb', line 10 def create if @command.success? render json: @command.object_count, status: 202 else render json: { error: @command. }, status: @command.error_code end end |