Ruby program used to determine parcel shipping costs depending on volume.
by: Lewis Nyoike & Edward Mudaida
- Input: my_parcel = Parcel.new('20', '20', '20', '100')
- Output: Volume of parcel: 8000 Cost to ship parcel: KES. 1500
Ruby
Sinatra
RSpec
Bundler
-
Clone the repo:
$ git clone [URL]
-
Install dependencies:
$ bundle
-
Run the app:
$ ruby app.rb
-
Navigate to http://localhost:4567/
Use $ rspec
to run tests