Class: Mercy::ReportBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/mercy/report_builder.rb

Instance Method Summary collapse

Instance Method Details

#add_config(key, config) ⇒ Object



8
9
10
# File 'lib/mercy/report_builder.rb', line 8

def add_config(key, config)
  configs[key] = Mercy::ReportConfig.new(config)
end

#build(key, parameters = {}) ⇒ Object



3
4
5
6
# File 'lib/mercy/report_builder.rb', line 3

def build(key, parameters = {})
  config = config_for(key)
  config.build(parameters)
end