Class: KingKong::Processor::Base
- Inherits:
-
Object
- Object
- KingKong::Processor::Base
- Defined in:
- lib/kingkong/processor.rb
Overview
Base class for processing pings
Instance Method Summary collapse
-
#initialize(&block) ⇒ Base
constructor
Enable block configurations.
- #process(ping) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Base
Enable block configurations
8 9 10 11 |
# File 'lib/kingkong/processor.rb', line 8 def initialize(&block) block.call(self) if block_given? self end |
Instance Method Details
#process(ping) ⇒ Object
13 14 15 |
# File 'lib/kingkong/processor.rb', line 13 def process(ping) raise 'Not Implemented' end |