Module: CO2Equivalents
- Defined in:
- lib/co2_equivalents.rb,
lib/co2_equivalents/group.rb,
lib/co2_equivalents/version.rb,
lib/co2_equivalents/citation.rb,
lib/co2_equivalents/equivalent.rb,
lib/co2_equivalents/result_set.rb,
lib/co2_equivalents/measurements.rb,
lib/co2_equivalents/measurements/food.rb,
lib/co2_equivalents/measurements/fuel.rb,
lib/co2_equivalents/measurements/flight.rb,
lib/co2_equivalents/measurements/driving.rb,
lib/co2_equivalents/measurements/recycling.rb,
lib/co2_equivalents/measurements/lightbulbs.rb,
lib/co2_equivalents/measurements/home_energy.rb
Defined Under Namespace
Modules: Measurements
Classes: Citation, Equivalent, Group, ResultSet
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
.grok(kgs_co2, *args) ⇒ Object
17
18
19
|
# File 'lib/co2_equivalents.rb', line 17
def grok(kgs_co2, *args)
ResultSet.compute kgs_co2, *args
end
|
.groups ⇒ Object
21
22
23
|
# File 'lib/co2_equivalents.rb', line 21
def groups
@groups ||= []
end
|
.register(*args) ⇒ Object
8
9
10
11
|
# File 'lib/co2_equivalents.rb', line 8
def register(*args)
equivalent = Equivalent.new *args
registry[equivalent.name] = equivalent
end
|
.registry ⇒ Object
13
14
15
|
# File 'lib/co2_equivalents.rb', line 13
def registry
@registry ||= {}
end
|