Module: AMEE::Analytics::TermAnalyticsSupport
- Defined in:
- lib/amee/analytics/term_analytics_support.rb
Overview
Mixin module for the AMEE::DataAbstraction::Term class, providing methods for handling collections of calculations.
Instance Method Summary collapse
-
#to_result ⇒ Object
Returns an instance of Result based upon the attributes of
self
.
Instance Method Details
#to_result ⇒ Object
Returns an instance of Result based upon the attributes of self
.
18 19 20 21 22 23 24 |
# 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 |