lib/pelusa/report.rb in pelusa-0.2.2 vs lib/pelusa/report.rb in pelusa-0.2.3
- old
+ new
@@ -4,22 +4,18 @@
#
class Report
# Public: Initializes a new Report.
#
# class_name - The Symbol name of the class being analyzed.
+ # type - the String type of the class being analyzed (class or module).
# analyses - An Array of Analysis objects.
- def initialize(class_name, analyses)
- @class_name = class_name
+ def initialize(name, type, analyses)
+ @class_name = name
+ @type = type
@analyses = analyses
end
- def class_name
- @class_name
- end
-
- def analyses
- @analyses
- end
+ attr_reader :class_name, :type, :analyses
def successful?
@analyses.all? { |analysis| analysis.successful? }
end
end