Class: KingKong::Processor::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/kingkong/processor.rb

Overview

Base class for processing pings

Direct Known Subclasses

Cube, Nosey

Instance Method Summary collapse

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