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