module AMEE::Analytics::TermAnalyticsSupport
Mixin module for the AMEE::DataAbstraction::Term class, providing methods for handling collections of calculations.
Public Instance Methods
to_result()
click to toggle source
Returns an instance of Result based upon the attributes of self
.
# File lib/amee/analytics/term_analytics_support.rb, line 18 def to_result result_term = Result.new AMEE::DataAbstraction::TermsList::TermProperties.each do |attr| result_term.send(attr, self.send(attr)) end return result_term end