Class: SpaceshipMissionSimulator::ValidateEventState
- Inherits:
-
Object
- Object
- SpaceshipMissionSimulator::ValidateEventState
- Includes:
- Interactor
- Defined in:
- lib/spaceship_mission_simulator/interactors/validate_event_state.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/spaceship_mission_simulator/interactors/validate_event_state.rb', line 5 def call event_state = context.raw_data.first.to_sym return true if Event.known_state?(event_state) context.fail! message: 'should be only land or launch' end |