Sha256: e139e816fdab83e3ad9222f79c655211783c3c95004d07e2f77e9f0333d5052b

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

module SpaceshipMissionSimulator
  class ValidatePathConsistency
    include Interactor

    def call
      return true if context.path.fresh_event_consistent?

      msg = 'spaceship mission path should be consistent (launch -> land)'
      context.fail! message: msg
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spaceship_mission_simulator-0.2.0 lib/spaceship_mission_simulator/interactors/validate_path_consistency.rb
spaceship_mission_simulator-0.1.0 lib/spaceship_mission_simulator/interactors/validate_path_consistency.rb