Sha256: 7cfc79305b76eee7e13a46837e8a5ce07c7b4a7f7940501e9fe345e6fac42584

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module DevSuite
  module Performance
    module Reporter
      require_relative "reporter/base"
      require_relative "reporter/simple"
      require_relative "reporter/helpers"

      class << self
        def create(reporter)
          case reporter
          when :simple
            Simple.new
          else
            raise ArgumentError, "Invalid reporter: #{reporter}"
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev_suite-0.2.5 lib/dev_suite/performance/reporter.rb