Class: JsonErrors::Config
- Inherits:
-
Object
- Object
- JsonErrors::Config
- Includes:
- Singleton
- Defined in:
- lib/json_errors/config.rb
Overview
Main config class. It brings all the customizable params.
Instance Attribute Summary collapse
-
#custom_codes ⇒ Object
Returns the value of attribute custom_codes.
-
#error_dictionary ⇒ Object
Returns the value of attribute error_dictionary.
Class Method Summary collapse
Instance Attribute Details
#custom_codes ⇒ Object
Returns the value of attribute custom_codes.
10 11 12 |
# File 'lib/json_errors/config.rb', line 10 def custom_codes @custom_codes end |
#error_dictionary ⇒ Object
Returns the value of attribute error_dictionary.
10 11 12 |
# File 'lib/json_errors/config.rb', line 10 def error_dictionary @error_dictionary end |
Class Method Details
.missing_config_error_meesage ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/json_errors/config.rb', line 12 def self.missing_config_error_meesage <<~'MSG' Configuration is missing. Run the generattor: `bundle exec rails g json_errors::install` or create the initializer yourself. Check out the README https://github.com/nomtek/JsonErrors/blob/main/README.md MSG end |