Method: Salestation::Web::ErrorMapper#initialize
- Defined in:
- lib/salestation/web/error_mapper.rb
#initialize(map = {}) ⇒ ErrorMapper
Returns a new instance of ErrorMapper.
24 25 26 |
# File 'lib/salestation/web/error_mapper.rb', line 24 def initialize(map = {}) @error_to_response_map = ERROR_TO_RESPONSE_DEFAULTS.merge(map) end |