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
11 12 13 |
# File 'lib/clean_architecture/matchers/use_case_result.rb', line 11 def self.call(result, &block) new.matcher.call(result, &block) end |
Instance Method Details
#matcher ⇒ Object
15 16 17 |
# File 'lib/clean_architecture/matchers/use_case_result.rb', line 15 def matcher Dry::Matcher.new(success: success_case, failure: failure_case) end |