Was suprised that I could not find a way to have an organizer perform callbacks.
Somewhat contrived example, but say I have a organizer that calls on a few interactors that work differently depending on the context:
class DriveMotorcycleToGroceryStore
include Interactor::Organizer
organize GetDirections, EngageVehicle, ParkInSpot
before do
context.car = "motorcycle"
context.start_time = Time.now
...
end
end
Possible to do this?
class DriveFancyCarToGroceryStore
include Interactor::Organizer
organize GetDirections, EngageVehicle, ParkInSpot
before do
context.car = "lamborghini"
context.start_time = Time.now
....
end
end
Was suprised that I could not find a way to have an organizer perform callbacks.
Somewhat contrived example, but say I have a organizer that calls on a few interactors that work differently depending on the context:
Possible to do this?