app/models/activities/accountability_report.rb
def dump_results!(key)
    file_path = results_file_path(key)
    File.open(file_path, "w") do |f|
      f.write @results.to_yaml
    end
    file_path
  end
# Dumps the students results hash into a YAML file for later retreival (or caching). You must pass a key that identifies
# what type of result this is in the process:
# 
# raw::                 After the raw data accumulation
# undergrads_only::     After removal of non-undergrads
# unique::              After duplication processing
# with_averages_added:: After the average number of hours have been calculated and inserted into the results with no hours.
#
Dumps the students results hash into a YAML file for later retreival (or caching). You must pass a key that identifies
what type of result this is in the process.


Dumps the students results hash into a YAML file for later retreival ( or caching ) . You must pass a key that identifies what type of result this is in the process .
def dump_results!(key)
    file_path = results_file_path(key)
    File.open(file_path, "w") do |f|
      f.write @results.to_yaml
    end
    file_path
  end
def dump_results! ( key ) file_path = results_file_path ( key ) File . open ( file_path , "w" ) do | f | f . write @results . to_yaml end file_path end
Dumps the students results hash into a YAML file for later retreival (or caching).
Dumps the students results hash into a YAML file for later retreival ( or caching ) .
key