Class: CoverMe::GlobalReport

Inherits:
Object
  • Object
show all
Defined in:
lib/cover_me/global_report.rb

Overview

Used to represent the module summary.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reports) ⇒ GlobalReport

:nodoc:



6
7
8
9
10
11
12
13
# File 'lib/cover_me/global_report.rb', line 6

def initialize(reports) # :nodoc:
  self.lines_of_code = 0
  self.lines_executed = 0
  reports.each do |report|
    self.lines_of_code += report.lines_of_code
    self.lines_executed += report.lines_executed
  end
end

Instance Attribute Details

#lines_executedObject

Returns the value of attribute lines_executed.



4
5
6
# File 'lib/cover_me/global_report.rb', line 4

def lines_executed
  @lines_executed
end

#lines_of_codeObject

Returns the value of attribute lines_of_code.



3
4
5
# File 'lib/cover_me/global_report.rb', line 3

def lines_of_code
  @lines_of_code
end