Class: SuiteStat

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

Overview

SuiteStat is a DTO for passing info used to create metrics

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output = nil, total_count = 0, tag_counts = {}) ⇒ SuiteStat

Returns a new instance of SuiteStat.



5
6
7
8
9
# File 'lib/suitestat.rb', line 5

def initialize(output = nil, total_count = 0, tag_counts = {})
  self.output = output
  self.total_count = total_count
  self.tag_counts = tag_counts
end

Instance Attribute Details

#outputObject

Returns the value of attribute output.



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

def output
  @output
end

#tag_countsObject

Returns the value of attribute tag_counts.



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

def tag_counts
  @tag_counts
end

#total_countObject

Returns the value of attribute total_count.



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

def total_count
  @total_count
end