Project

energy

0.0
No commit activity in last 3 years
No release in over 3 years
Get energy use estimates for flights, rail trips, and automobile trips (more coming soon!). BETA from Brighter Planet.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

energy¶ ↑

Get energy use estimates for flights, rail trips, and automobile trips (more coming soon!). BETA from Brighter Planet.

BETA¶ ↑

This is beta software and subject to change at any time.

Examples¶ ↑

Fuel used by a Bentley¶ ↑

?> Energy::AutomobileTrip.fuel_use(:make => 'Bentley', :distance => 500)
=> [how many litres of gas a Bentley uses to drive 500km]

Fuel used by a Continental Airlines flight¶ ↑

?> Energy::Flight.fuel_use(:airline => 'Continental Airlines')
=> [how many litres of aviation fuel a Continental Airlines flight consumes]

Fuel used by an Amtrak train¶ ↑

?> Energy::RailTrip.fuel_use(:rail_class => 'intercity', :distance => 500)
=> [how many litres of diesel an intercity uses over 500km]

TODO¶ ↑

  • always provide a conversion of, for example, fuel use in litres to energy use in joules to be true to the intent of the gem

  • decide how we expect people to use this gem (maybe it should be more like Carbon and not define its own classes)

  • hit impact.brighterplanet.com or energy.brighterplanet.com directly

Copyright 2011 Brighter Planet, Inc.