Method: Mints::Errors::DynamicError#initialize
- Defined in:
- lib/errors.rb
#initialize(client, title, detail, http_status, response) ⇒ DynamicError
Returns a new instance of DynamicError.
19 20 21 22 |
# File 'lib/errors.rb', line 19 def initialize(client, title, detail, http_status, response) @http_status = http_status @error = error_class.constantize&.new(client, title, detail, http_status, response) end |