Class: InternetHakai::Reporter

Inherits:
BaseHandler show all
Defined in:
lib/internethakai/reporter.rb

Direct Known Subclasses

PStoreReporter, TsvReporter

Constant Summary collapse

UNIQUE_BY_THREAD =
false

Instance Method Summary collapse

Methods inherited from BaseHandler

clear, clearall, get_class, get_config, get_handler, get_instance, get_instance_thread, get_thread_id, #initialize, #on_create, set_config, set_thread_id, unique_by_thread?

Constructor Details

This class inherits a constructor from InternetHakai::BaseHandler

Instance Method Details

#get_filenameObject



14
15
16
# File 'lib/internethakai/reporter.rb', line 14

def get_filename
    @filename
end

#init_filename(fname) ⇒ Object



11
12
13
# File 'lib/internethakai/reporter.rb', line 11

def init_filename fname
    @filename = fname
end

#run(record) ⇒ Object



4
5
6
7
# File 'lib/internethakai/reporter.rb', line 4

def run record
    @config = BaseHandler.get_config
    @logger = BaseHandler::get_handler(@config["logger"])
end

#set_dir(dir) ⇒ Object



8
9
10
# File 'lib/internethakai/reporter.rb', line 8

def set_dir dir
    @dir = dir
end