@answer = @session.answer_for_computation("4bab7e64f78b122cdd000005", {"material_category"=>"4bf42d8046a95925b5000efb", "type_of_material"=>"4bf42d8046a95925b5000f40", "material"=>"4bf42d8046a95925b5000f2a", "amount_of_material"=>"10", "formula_input_name"=>"emissions_by_kg"})
@answer.calculations["co2"]["value"]
OR
@answer = @session.answer_for_calculator("4bab7e4ff78b122cdd000004", {"material_category"=>"4bf42d8046a95925b5000efb", "type_of_material"=>"4bf42d8046a95925b5000f40", "material"=>"4bf42d8046a95925b5000f2a", "amount_of_material"=>"10", "formula_input_name"=>"emissions_by_kg"})
@answer.calculations["co2"]["value"]
This will return a Calculated::Models::Answer Object
The reason that you can get an answer from either a calculator or a computation is the power of the validations; its cool
trust me.

Object Template Api

A Object Template is a template for the building of generic objects; these contain information about what
all the object for the object template should contain; as well as getting relatable categories which can be
used to filter to specific generic objects which you can then later be used in answer calls

Generic Objects API

A Generic Object represents and object that is used in computations OR calculators; a computation will always
need at least one object to talk about; The "formula_inputs" of an object are the values that are used
in formulas and can be versioned to specific times for equations that change over time.

Relatable Category API

Relatable Categories are created when an generic object has been created; And not before hand; Hence
in theory a relatable category is only there when objects are there and not before; Which means
that you should never have a problem of a category existing just for the fun of it;

A relatable category will know all the objects that have its name and related_attribute; In a nut shell you can use relatable
category to filter and find related objects easily and effectively;

Also a relatable category will know of other relatable categories of the created object; so this allows for
super easy drop downs to create easy filter; the blog should help explain this further or just send me an email;

Answer API

This is the crux of the api; this is where co2, co2e etc results can be found;

The best and easiest way to found what information you need to get a valid answer is using the browser["http://browser.carboncalculated.com"]
Once you have found what parameters you need to send you can then do exactly that;

A Answer Object will give you vaste information on what it used to get the answer; You will be told the all the objects that were used in the calculation
all the used_formula_inputs and the sources that where used to gain the information to make the calculation even possible.