Class: ApplicationService

Inherits:
ServiceBase show all
Defined in:
lib/generators/service/templates/base/application_service.rb

Instance Attribute Summary

Attributes inherited from ServiceBase

#cmd

Instance Method Summary collapse

Methods inherited from ServiceBase

call, #initialize

Constructor Details

This class inherits a constructor from ServiceBase

Instance Method Details

#callObject



4
5
6
7
8
# File 'lib/generators/service/templates/base/application_service.rb', line 4

def call
  ServiceResult.new do
    cmd.class.name.gsub('Commands', 'Usecases').constantize.call(cmd)
  end
end