Sha256: e741d748ff1c3efc68c536f3220358411a633209145e7ca39b4587b1ebb80c4f
Contents?: true
Size: 699 Bytes
Versions: 4
Compression:
Stored size: 699 Bytes
Contents
# 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
solid_errors-0.3.3 | lib/solid_errors.rb |
solid_errors-0.3.2 | lib/solid_errors.rb |
solid_errors-0.3.1 | lib/solid_errors.rb |
solid_errors-0.3.0 | lib/solid_errors.rb |