Sha256: e96c86c0ccc840f0aaedfe34f8c02959dd7933fa4c1e2f27549799a633a78053

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

require 'hash_to_struct'

module Meta
  DEFAULT_OPTIONS = {
    default_locked_scope: nil,
    json_schema_user_options: {},
    json_schema_param_stage_user_options: {},
    json_schema_render_stage_user_options: {}
  }

  class << self
    attr_reader :config

    def initialize_configuration(*options_list)
      final_options = options_list.reduce(DEFAULT_OPTIONS, :deep_merge)
      @config = HashToStruct.struct(final_options)
    end
  end
end
Meta.initialize_configuration

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meta-api-0.0.9 lib//meta/config.rb