Class: Mocktail::HandlesDryCall
- Inherits:
-
Object
- Object
- Mocktail::HandlesDryCall
- Extended by:
- T::Sig
- Defined in:
- lib/mocktail/handles_dry_call.rb,
lib/mocktail/sorbet/mocktail/handles_dry_call.rb
Instance Method Summary collapse
- #handle(dry_call) ⇒ Object
-
#initialize ⇒ HandlesDryCall
constructor
A new instance of HandlesDryCall.
Constructor Details
#initialize ⇒ HandlesDryCall
Returns a new instance of HandlesDryCall.
9 10 11 12 13 |
# File 'lib/mocktail/handles_dry_call.rb', line 9 def initialize @validates_arguments = ValidatesArguments.new @logs_call = LogsCall.new @fulfills_stubbing = FulfillsStubbing.new end |
Instance Method Details
#handle(dry_call) ⇒ Object
15 16 17 18 19 |
# File 'lib/mocktail/handles_dry_call.rb', line 15 def handle(dry_call) @validates_arguments.validate(dry_call) @logs_call.log(dry_call) @fulfills_stubbing.fulfill(dry_call) end |