Class: Shades::MeasureRollup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#outboundObject

Returns the value of attribute outbound.



134
135
136
# File 'lib/shades/cube.rb', line 134

def outbound
  @outbound
end

#statObject

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_measureObject



142
143
144
# File 'lib/shades/cube.rb', line 142

def outbound_measure
  @outbound
end