Sha256: 1a83670e93dac60148367cd5df6c7a105843e47a8e05c287c7a82d6359ff4382
Contents?: true
Size: 693 Bytes
Versions: 6
Compression:
Stored size: 693 Bytes
Contents
# Rails helper for displaying footprint data. module TronprintHelper # The total amount of CO2e generated by the application. def total_footprint emission_estimate.to_f end # A URL for the methodology statement of the emissions calculation. def footprint_methodology emission_estimate.methodology end # The Carbon::EmissionEstimate object representing the # estimate processed by CM1. def emission_estimate @emission_estimate ||= Tronprint.emission_estimate end # Let the world know that your app is powered by CM1 def cm1_badge %q{<script type="text/javascript" src="http://carbon.brighterplanet.com/badge.js"></script>}. html_safe end end
Version data entries
6 entries across 6 versions & 1 rubygems