Sha256: 48cdd6079cd8fba5bb29b758fd5da4de7a2666b8e5f4056dc62275f04c1ee29a

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

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

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

      private

      def config_for(key)
        configs[key]
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bidu-house-1.3.0 lib/bidu/house/report_builder.rb
bidu-house-1.2.0 lib/bidu/house/report_builder.rb
bidu-house-1.1.0 lib/bidu/house/report_builder.rb
bidu-house-1.0.0 lib/bidu/house/report_builder.rb
bidu-house-0.2.1 lib/bidu/house/report_builder.rb
bidu-house-0.2.0 lib/bidu/house/report_builder.rb