Class: NucleusCore::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/nucleus_core.rb

Constant Summary collapse

ERROR_STATUSES =
%i[not_found bad_request unauthorized unprocessable].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_formatObject

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

#exceptionsObject

Returns the value of attribute exceptions.



24
25
26
# File 'lib/nucleus_core.rb', line 24

def exceptions
  @exceptions
end

#loggerObject

Returns the value of attribute logger.



23
24
25
# File 'lib/nucleus_core.rb', line 23

def logger
  @logger
end