Class: Shades::MeasureRollup
- Inherits:
-
Object
- Object
- Shades::MeasureRollup
- Defined in:
- lib/shades/cube.rb
Instance Attribute Summary collapse
-
#outbound ⇒ Object
Returns the value of attribute outbound.
-
#stat ⇒ Object
Returns the value of attribute stat.
Instance Method Summary collapse
- #get_value(event) ⇒ Object
-
#initialize(inbound, outbound, stat) ⇒ MeasureRollup
constructor
A new instance of MeasureRollup.
- #outbound_measure ⇒ Object
Constructor Details
#initialize(inbound, outbound, stat) ⇒ MeasureRollup
Returns a new instance of MeasureRollup.
136 137 138 139 140 |
# File 'lib/shades/cube.rb', line 136 def initialize(inbound, outbound, stat) @inbound = inbound @outbound = outbound @stat = stat end |
Instance Attribute Details
#outbound ⇒ Object
Returns the value of attribute outbound.
134 135 136 |
# File 'lib/shades/cube.rb', line 134 def outbound @outbound end |
#stat ⇒ Object
Returns the value of attribute stat.
133 134 135 |
# File 'lib/shades/cube.rb', line 133 def stat @stat end |
Instance Method Details
#get_value(event) ⇒ Object
145 146 147 |
# File 'lib/shades/cube.rb', line 145 def get_value(event) event.measure(@inbound) end |
#outbound_measure ⇒ Object
142 143 144 |
# File 'lib/shades/cube.rb', line 142 def outbound_measure @outbound end |