Class: LLT::Review::Alignment::Report::Generic

Inherits:
Common::Report::Generic show all
Defined in:
lib/llt/review/alignment/report/generic.rb

Instance Attribute Summary

Attributes inherited from Common::Report::Generic

#reports_to_request

Attributes included from Helpers::Reportable

#id, #right, #total, #unique, #wrong

Instance Method Summary collapse

Methods inherited from Common::Report::Generic

#id, #initialize, #xml_attributes, #xml_tag

Methods included from Helpers::Reportable

#add, #add_total, #add_wrong, #clone, #count_rights, #increment, #init_diff, #initialize, #percentage, #sort, #sort!, #xml_attributes, #xml_tag

Constructor Details

This class inherits a constructor from LLT::Review::Common::Report::Generic

Instance Method Details

#collect_reports(words) ⇒ Object



4
5
6
7
# File 'lib/llt/review/alignment/report/generic.rb', line 4

def collect_reports(words)
  return unless @reports_to_request
  words.each { |_, word| add(word.report) }
end