Module: FFWD::Reporter::ClassMethods

Defined in:
lib/ffwd/reporter.rb

Instance Method Summary collapse

Instance Method Details

#reporter_keysObject



22
23
24
# File 'lib/ffwd/reporter.rb', line 22

def reporter_keys
  @_reporter_keys ||= [:total]
end

#reporter_metaObject



26
27
28
# File 'lib/ffwd/reporter.rb', line 26

def reporter_meta
  @_reporter_meta ||= nil
end

#reporter_meta_methodObject



30
31
32
# File 'lib/ffwd/reporter.rb', line 30

def reporter_meta_method
  @_reporter_meta_method ||= :reporter_meta
end

#setup_reporter(opts = {}) ⇒ Object



34
35
36
37
38
# File 'lib/ffwd/reporter.rb', line 34

def setup_reporter opts={}
  @_reporter_keys = [:total] + (opts[:keys] || [])
  @_reporter_meta = opts[:reporter_meta]
  @_reporter_meta_method = opts[:id_method] || :reporter_meta
end