Zooip/smooth_change

View on GitHub
lib/smooth_change/configuration.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module SmoothChange
  # Store SmoothChange gem's global configuration
  class Configuration
    def initialize
      set_defaults!
    end

    attr_accessor :http_header_name,
                  :adapter

    private

    def set_defaults!
      self.http_header_name = "X-FeatureCapabilities"
      self.adapter = Adapters::Memory.new
    end
  end
end