Sha256: 244dc2bacfd1922249ce8b0dc154d64246152d667a750f0726211a98f716a4ff
Contents?: true
Size: 482 Bytes
Versions: 4
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true require 'hash_to_struct' module Meta DEFAULT_OPTIONS = { 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
meta-api-0.2.0 | lib//meta/config.rb |
meta-api-0.1.2 | lib//meta/config.rb |
meta-api-0.1.1 | lib//meta/config.rb |
meta-api-0.1.0 | lib//meta/config.rb |