class Userlist::ConfigurationError

Attributes

key[R]

Public Class Methods

new(key) click to toggle source
Calls superclass method
# File lib/userlist.rb, line 17
    def initialize(key)
      @key = key.to_sym

      super <<~MESSAGE
        Missing required configuration value for `#{key}`

        Please set a value for `#{key}` using an environment variable:

          USERLIST_#{key.to_s.upcase}=some-value-here

        or via the `Userlist.configure` method:

          Userlist.configure do |config|
            config.#{key} = 'some-value-here'
          end
      MESSAGE
    end