Method: RequestLogAnalyzer::Aggregator::Summarizer#to_yaml
- Defined in:
- lib/request_log_analyzer/aggregator/summarizer.rb
#to_yaml ⇒ Object
Exports all the tracker results to YAML. It will call the to_yaml_object method for every tracker and combines these into a single YAML export.
104 105 106 107 108 109 110 |
# File 'lib/request_log_analyzer/aggregator/summarizer.rb', line 104 def to_yaml require 'yaml' trackers_export = @trackers.inject({}) do |export, tracker| export[tracker.title] = tracker.to_yaml_object; export end YAML::dump(trackers_export) end |