Class: SpaceshipMissionSimulator::ValidateRawPath
- Inherits:
-
Object
- Object
- SpaceshipMissionSimulator::ValidateRawPath
- Includes:
- Interactor
- Defined in:
- lib/spaceship_mission_simulator/interactors/validate_raw_path.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 |
# File 'lib/spaceship_mission_simulator/interactors/validate_raw_path.rb', line 5 def call return true if context.raw_path.is_a?(Array) context.fail! message: 'should provide raw path as array of events' end |