Class: SpaceshipMissionSimulator::ValidateEventData

Inherits:
Object
  • Object
show all
Includes:
Interactor
Defined in:
lib/spaceship_mission_simulator/interactors/validate_event_data.rb

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
9
10
# File 'lib/spaceship_mission_simulator/interactors/validate_event_data.rb', line 5

def call
  return true if correct_event_data?

  msg = 'should provide proper event format ([state, gravity])'
  context.fail! message: msg
end