Class: SpaceshipMissionSimulator::ValidatePathConsistency
- Inherits:
-
Object
- Object
- SpaceshipMissionSimulator::ValidatePathConsistency
- Includes:
- Interactor
- Defined in:
- lib/spaceship_mission_simulator/interactors/validate_path_consistency.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 |
# File 'lib/spaceship_mission_simulator/interactors/validate_path_consistency.rb', line 5 def call return true if context.path.fresh_event_consistent? msg = 'spaceship mission path should be consistent (launch -> land)' context.fail! message: msg end |