Method: Fbp::Counter_node#initialize

Defined in:
lib/fbp/counter-node.rb

#initialize(key = nil) ⇒ Counter_node

When creating a new Counter_node instance one can optionally provide a symbol which would be used to match a key in an incoming IP. The IP would then only be counted if the IP contained that key.



15
16
17
18
# File 'lib/fbp/counter-node.rb', line 15

def initialize(key = nil)
  super()
  @options[:key] = key if !key.nil?
end