Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Update readme with an example to use gem in app
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmaerten committed Nov 14, 2018
1 parent 7393b32 commit b5411e6
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,26 @@ calculators.

## Usage

Install the gem :
Install the gem:

$ gem install chronopost_fuel_multiplier
$ gem install chronopost_fuel_adjustment_coefficients

Run the gem :
Run the gem:

$ chronopost_fuel_multiplier
$ chronopost_fuel_adjustment_coefficients

Get the result :
Get the result:

# Fuel multipliers for 'Février 2017'
# Fetched from http://www.chronopost.fr/fr/surcharge-carburant

AIR_FUEL_MULTIPLIER = 1.1685
ROAD_FUEL_MULTIPLIER = 1.1150

Or use it in your app:

require 'chronopost_fuel_adjustment_coefficients'

ch = ChronopostFuelAdjustmentCoefficients.new
ch.road_multiplier # 0.11685e1
ch.air_multiplier # 0.1115e1

0 comments on commit b5411e6

Please sign in to comment.