Class: DaimonSkycrawlers::Processor::Base
Instance Method Summary
collapse
#configure
Methods included from Callbacks
#before_process, #clear_before_process_callbacks, #initialize, #run_before_callbacks
#initialize
included, #initialize
Instance Method Details
#call(message) ⇒ Object
20
21
22
|
# File 'lib/daimon_skycrawlers/processor/base.rb', line 20
def call(message)
raise "Implement this method in subclass"
end
|
#process(message) ⇒ Object
14
15
16
17
18
|
# File 'lib/daimon_skycrawlers/processor/base.rb', line 14
def process(message)
proceeding = run_before_callbacks(message)
return unless proceeding
call(message)
end
|
#storage ⇒ Object
24
25
26
|
# File 'lib/daimon_skycrawlers/processor/base.rb', line 24
def storage
@storage ||= DaimonSkycrawlers::Storage::RDB.new
end
|