class PennyWise::Configuration

Attributes

error_layout[RW]
error_messages[RW]
error_template[RW]
errors[RW]
failure_message[RW]
logger[RW]
require_integration[RW]
unknown_error_message[RW]

Public Class Methods

new() click to toggle source
# File lib/penny_wise/configuration.rb, line 7
def initialize
  @require_integration = true
  @errors = {}
  @error_messages = {}
  @unknown_error_message = ['Unexpected Error', 'It looks like something went wrong.']
  @error_layout = 'application'
  @error_template = '/errors/error'
  @failure_message =  "While handling an error, our error handler encountered an error;" \
                      " which is why we built this second one." \
                      "\nThis issue has been registered as critical." \
                      "\nYou can imagine fixing it is now our top priority," \
                      " thank you for discovering it!"
  @logger = Logger.new(STDERR)
end