1
0

Add script for running the system

This commit is contained in:
Tim Kächele 2023-09-02 08:38:44 +02:00
parent de8b641cb3
commit b7eddf7ab1

8
bin/test_script.rb Normal file
View File

@ -0,0 +1,8 @@
require "bundler/setup"
require "planet_express_express"
data = File.read("./data.txt")
shipments = PlanetExpressExpress::ShipmentReader.new(PlanetExpressExpress::PRICE_LIST).read_shipments(data)
PlanetExpressExpress::Rules.new(PlanetExpressExpress::PRICE_LIST).apply_rules(shipments)