Method: ExceptionNotifier::Formatter#initialize

Defined in:
lib/exception_notifier/modules/formatter.rb

#initialize(exception, opts = {}) ⇒ Formatter

Returns a new instance of Formatter.



12
13
14
15
16
17
18
# File 'lib/exception_notifier/modules/formatter.rb', line 12

def initialize(exception, opts = {})
  @exception = exception

  @env = opts[:env]
  @errors_count = opts[:accumulated_errors_count].to_i
  @app_name = opts[:app_name] || rails_app_name
end