Class: RailsStats::CucumberStatistics

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_stats/cucumber_statistics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(directory) ⇒ CucumberStatistics

Returns a new instance of CucumberStatistics.



5
6
7
8
9
10
# File 'lib/rails_stats/cucumber_statistics.rb', line 5

def initialize(directory)
  @test = true
  @directory    = directory
  @statistics   = calculate_statistics
  @total        = calculate_total
end

Instance Attribute Details

#statisticsObject (readonly)

Returns the value of attribute statistics.



3
4
5
# File 'lib/rails_stats/cucumber_statistics.rb', line 3

def statistics
  @statistics
end

#testObject (readonly)

Returns the value of attribute test.



3
4
5
# File 'lib/rails_stats/cucumber_statistics.rb', line 3

def test
  @test
end

#totalObject (readonly)

Returns the value of attribute total.



3
4
5
# File 'lib/rails_stats/cucumber_statistics.rb', line 3

def total
  @total
end