Sha256: 516121c4cff2598bd685b9e887723bb228b15849764a58a286a6d26a8ef65ffb

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

module Bidu
  module Mercy
    class ReportBuilder
      def build(key, parameters = {})
        config = config_for(key)
        config.build(parameters)
      end

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

      private

      def config_for(key)
        configs[key]
      end

      def configs
        @configs ||= {}
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mercy-1.3.0 lib/bidu/mercy/report_builder.rb
bidu-mercy-1.3.0 lib/bidu/mercy/report_builder.rb