Class: LogfileInterval::Aggregator::OneHundredMinusPxx

Inherits:
Pxx
  • Object
show all
Defined in:
lib/vpsb_client/datafiles/pxx_aggregator.rb

Instance Method Summary collapse

Methods inherited from Pxx

#initialize, #single_value?, #value

Constructor Details

This class inherits a constructor from LogfileInterval::Aggregator::Pxx

Instance Method Details

#add(value, group_by = nil) ⇒ Object

Raises:

  • (NotImplementedError)


24
25
26
27
# File 'lib/vpsb_client/datafiles/pxx_aggregator.rb', line 24

def add(value, group_by = nil)
  raise NotImplementedError if group_by
  @val.increment(100.0 - value)
end