Module: Calculated

Defined in:
lib/calculated/models/answer.rb,
lib/calculated/version.rb,
lib/calculated/service.rb,
lib/calculated/session.rb,
lib/calculated/logging.rb,
lib/calculated/models/source.rb,
lib/calculated/answer_api_calls.rb,
lib/calculated/models/formula_input.rb,
lib/calculated/models/characteristic.rb,
lib/calculated/models/generic_object.rb,
lib/calculated/models/object_template.rb,
lib/calculated/generic_object_api_calls.rb,
lib/calculated/object_template_api_calls.rb,
lib/calculated/models/relatable_category.rb,
lib/calculated/relatable_category_api_calls.rb

Overview

Answers from the api ?? calculations will be in the form of a hash with value and units keys

answer.calculations["co2"]["value"] == 10
answer.calculations["co2"]["units"] == "kg"

Defined Under Namespace

Modules: AnswerApiCalls, GenericObjectApiCalls, Logging, Models, ObjectTemplateApiCalls, RelatableCategoryApiCalls Classes: Service, Session

Constant Summary

VERSION =
"0.1.6"
@@logger =
nil

Class Method Summary (collapse)

Class Method Details

+ (Object) logger



7
8
9
# File 'lib/calculated/logging.rb', line 7

def self.logger
  @@logger
end

+ (Object) logger=(logger)



4
5
6
# File 'lib/calculated/logging.rb', line 4

def self.logger=(logger)
  @@logger = logger
end