Class: ReporterLoader

Inherits:
Object
  • Object
show all
Defined in:
app/ports/reporter_loader.rb

Overview

Loads a reporter from the local filesystem

Instance Method Summary collapse

Instance Method Details

#create_reporter(reporter_id) ⇒ Object



4
5
6
7
# File 'app/ports/reporter_loader.rb', line 4

def create_reporter(reporter_id)
  require "reporters/#{reporter_id}_reporter"
  eval "#{reporter_id.camelize}Reporter.new"
end