Module: UsageTracker::Reactor
- Defined in:
- lib/usage_tracker/reactor.rb
Instance Method Summary collapse
-
#receive_data(data) ⇒ Object
This method is called upon every data reception.
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/reactor.rb', line 8 def receive_data(data) doc = parse(data) if doc && check(doc) store(doc) end end |