Wolox/wor-prof

View on GitHub
lib/wprof/reporters/db_report.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Wprof
  module Reporters
    module DatabaseReport
      def db_report
        case @rec_type
        when :service
          WprofService.create(@data)
        when :standard
          WprofController.create(@data)
        when :custom
          WprofMethod.create(@data)
        end
      end
    end
  end
end