Class: DaimonSkycrawlers::Processor::Proc

Inherits:
Base
  • Object
show all
Defined in:
lib/daimon_skycrawlers/processor/proc.rb

Overview

Processor for Proc

Instance Attribute Summary

Attributes inherited from Base

#storage

Instance Method Summary collapse

Methods inherited from Base

#process

Methods included from Configurable

#configure

Methods included from Callbacks

#after_process, #before_process, #clear_after_process_callbacks, #clear_before_process_callbacks, #run_after_process_callbacks, #run_before_process_callbacks

Constructor Details

#initialize(handler) ⇒ Proc

Returns a new instance of Proc.



9
10
11
12
# File 'lib/daimon_skycrawlers/processor/proc.rb', line 9

def initialize(handler)
  super()
  @handler = handler
end

Instance Method Details

#call(message) ⇒ Object

Process message



17
18
19
# File 'lib/daimon_skycrawlers/processor/proc.rb', line 17

def call(message)
  @handler.call(message)
end