Class: NucleusCore::Configuration
- Inherits:
-
Object
- Object
- NucleusCore::Configuration
- Defined in:
- lib/nucleus_core.rb
Constant Summary collapse
- ERROR_STATUSES =
%i[not_found bad_request unauthorized unprocessable].freeze
Instance Attribute Summary collapse
-
#default_response_format ⇒ Object
Returns the value of attribute default_response_format.
-
#exceptions ⇒ Object
Returns the value of attribute exceptions.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 31 32 |
# File 'lib/nucleus_core.rb', line 28 def initialize @logger = nil @exceptions = format_exceptions @default_response_format = :json end |
Instance Attribute Details
#default_response_format ⇒ Object
Returns the value of attribute default_response_format.
23 24 25 |
# File 'lib/nucleus_core.rb', line 23 def default_response_format @default_response_format end |
#exceptions ⇒ Object
Returns the value of attribute exceptions.
24 25 26 |
# File 'lib/nucleus_core.rb', line 24 def exceptions @exceptions end |
#logger ⇒ Object
Returns the value of attribute logger.
23 24 25 |
# File 'lib/nucleus_core.rb', line 23 def logger @logger end |