Module: UsageTrackerServer::Reactor

Defined in:
lib/usage_tracker_server/reactor.rb

Instance Method Summary collapse

Instance Method Details

#receive_data(data) ⇒ Object

This method is called upon every data reception



8
9
10
11
12
13
# File 'lib/usage_tracker_server/reactor.rb', line 8

def receive_data(data)
  doc = parse(data)
  if doc && check(doc)
    store(doc)
  end
end