Class: RiderKick::Matchers::UseCaseResult
- Inherits:
-
Object
- Object
- RiderKick::Matchers::UseCaseResult
- Defined in:
- lib/rider_kick/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/rider_kick/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/rider_kick/matchers/use_case_result.rb', line 15 def matcher Dry::Matcher.new(success: success_case, failure: failure_case) end |