Sha256: c2d012fb4ba4f94f3d0f373bfc2570d3deda6c99e31ceb69a8375c46c38d5e5a

Contents?: true

Size: 294 Bytes

Versions: 18

Compression:

Stored size: 294 Bytes

Contents

require "flipper/exporters/json/v1"

module Flipper
  module Exporter
    extend self

    FORMATTERS = {
      json: {
        1 => Flipper::Exporters::Json::V1,
      }
    }.freeze

    def build(format: :json, version: 1)
      FORMATTERS.fetch(format).fetch(version).new
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
flipper-1.3.2 lib/flipper/exporter.rb
flipper-1.3.1 lib/flipper/exporter.rb
flipper-1.3.0 lib/flipper/exporter.rb
flipper-1.3.0.pre lib/flipper/exporter.rb
flipper-1.2.2 lib/flipper/exporter.rb
flipper-1.2.1 lib/flipper/exporter.rb
flipper-1.2.0 lib/flipper/exporter.rb
flipper-1.1.2 lib/flipper/exporter.rb
flipper-1.1.1 lib/flipper/exporter.rb
flipper-1.1.0 lib/flipper/exporter.rb
flipper-1.0.0 lib/flipper/exporter.rb
flipper-1.0.0.pre lib/flipper/exporter.rb
flipper-0.28.3 lib/flipper/exporter.rb
flipper-0.28.2 lib/flipper/exporter.rb
flipper-0.28.1 lib/flipper/exporter.rb
flipper-0.28.0 lib/flipper/exporter.rb
flipper-0.27.1 lib/flipper/exporter.rb
flipper-0.27.0 lib/flipper/exporter.rb