Class: ApiMaker::ServiceCommandService

Inherits:
CommandService show all
Defined in:
app/services/api_maker/service_command_service.rb

Instance Attribute Summary

Attributes inherited from CommandService

#ability, #api_maker_args, #command_name, #command_response, #commands, #controller, #resource_name

Instance Method Summary collapse

Methods inherited from CommandService

#initialize, #model_class, #namespace, #resource

Methods inherited from ApplicationService

#api_maker_json

Constructor Details

This class inherits a constructor from ApiMaker::CommandService

Instance Method Details

#performObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'app/services/api_maker/service_command_service.rb', line 2

def perform
  ApiMaker::ServiceCommand.execute_in_thread!(
    ability: ability,
    api_maker_args: api_maker_args,
    collection: nil,
    commands: commands,
    command_response: command_response,
    controller: controller
  )

  succeed!
end