Class: ApplicationService
- Inherits:
-
ServiceBase
- Object
- ServiceBase
- ApplicationService
- Defined in:
- lib/generators/service/templates/base/application_service.rb
Instance Attribute Summary
Attributes inherited from ServiceBase
Instance Method Summary collapse
Methods inherited from ServiceBase
Constructor Details
This class inherits a constructor from ServiceBase
Instance Method Details
#call ⇒ Object
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 |