class SpaceshipMissionSimulator::ValidateEventState

Public Instance Methods

call() click to toggle source
# 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