README.md in prezzo-0.3.1 vs README.md in prezzo-0.4.0
- old
+ new
@@ -148,10 +148,10 @@
end
end
context = Uber::Context.new(distance: 10.0)
Uber::RidePriceCalculator.new(context).explain
-#=> { base_fare: 4.3, price_per_distance: 21.3 }
+#=> { total: 25.6, components: { base_fare: 4.3, price_per_distance: 21.3 } }
```
Check the full [Uber pricing](/spec/integration/uber_pricing_spec.rb) for more complete example with many calculators and factors.
## Development