class JsonapiErrorsHandler::Configuration
Configuration
class allowing to set up the initial behavior for the gem
Attributes
handle_unexpected[W]
Public Class Methods
new()
click to toggle source
# File lib/jsonapi_errors_handler/configuration.rb, line 29 def initialize @handle_unexpected = false end
Public Instance Methods
configure() { |self| ... }
click to toggle source
Allows to override the configuration options @param [Block] - list of options to be overwriten
# File lib/jsonapi_errors_handler/configuration.rb, line 16 def configure yield(self) if block_given? end
handle_unexpected?()
click to toggle source
Checks if unexpected errors should be handled by the gem @return [Boolean]
# File lib/jsonapi_errors_handler/configuration.rb, line 23 def handle_unexpected? @handle_unexpected end