Class: CleanArchitecture::Matchers::UseCaseResult
- Inherits:
-
Object
- Object
- CleanArchitecture::Matchers::UseCaseResult
- Defined in:
- lib/clean_architecture/matchers/use_case_result.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(result, &block) ⇒ Object
8 9 10 |
# File 'lib/clean_architecture/matchers/use_case_result.rb', line 8 def self.call(result, &block) new.matcher.call(result, &block) end |
Instance Method Details
#matcher ⇒ Object
12 13 14 |
# File 'lib/clean_architecture/matchers/use_case_result.rb', line 12 def matcher Dry::Matcher.new(success: success_case, failure: failure_case) end |