Module: UseCase
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveModel::Validations
- Defined in:
- app/use_cases/use_case.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#perform ⇒ Object
implement all the steps required to complete this use case.
-
#success? ⇒ Boolean
inside of perform, add errors if the use case did not succeed.
Instance Method Details
#perform ⇒ Object
implement all the steps required to complete this use case
13 14 15 |
# File 'app/use_cases/use_case.rb', line 13 def perform raise NotImplementedError end |
#success? ⇒ Boolean
inside of perform, add errors if the use case did not succeed
18 19 20 |
# File 'app/use_cases/use_case.rb', line 18 def success? errors.none? end |