Class: SuiteStat
- Inherits:
-
Object
- Object
- SuiteStat
- Defined in:
- lib/suitestat.rb
Overview
SuiteStat is a DTO for passing info used to create metrics
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
-
#tag_counts ⇒ Object
Returns the value of attribute tag_counts.
-
#total_count ⇒ Object
Returns the value of attribute total_count.
Instance Method Summary collapse
-
#initialize(output = nil, total_count = 0, tag_counts = {}) ⇒ SuiteStat
constructor
A new instance of SuiteStat.
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
#output ⇒ Object
Returns the value of attribute output.
3 4 5 |
# File 'lib/suitestat.rb', line 3 def output @output end |
#tag_counts ⇒ Object
Returns the value of attribute tag_counts.
3 4 5 |
# File 'lib/suitestat.rb', line 3 def tag_counts @tag_counts end |
#total_count ⇒ Object
Returns the value of attribute total_count.
3 4 5 |
# File 'lib/suitestat.rb', line 3 def total_count @total_count end |