Add script for running the system
This commit is contained in:
parent
de8b641cb3
commit
b7eddf7ab1
8
bin/test_script.rb
Normal file
8
bin/test_script.rb
Normal 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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user