# frozen_string_literal: true require_relative "solid_errors/version" require_relative "solid_errors/sanitizer" require_relative "solid_errors/subscriber" require_relative "solid_errors/engine" module SolidErrors mattr_accessor :connects_to mattr_accessor :username mattr_accessor :password class << self # use method instead of attr_accessor to ensure # this works if variable set after SolidErrors is loaded def username @username ||= ENV["SOLIDERRORS_USERNAME"] end # use method instead of attr_accessor to ensure # this works if variable set after SolidErrors is loaded def password @password ||= ENV["SOLIDERRORS_PASSWORD"] end end end