class ExceptionData

Attributes

exception[R]

Public Class Methods

new(exception) click to toggle source
# File lib/errorapp_notifier/exception_data.rb, line 4
def initialize(exception)
  @exception = exception
end

Public Instance Methods

data() click to toggle source
# File lib/errorapp_notifier/exception_data.rb, line 8
def data
  {
    :exception =>
    {
      :exception_class => exception.class.to_s,
      :message => exception.message,
      :backtrace => exception.backtrace,
      :occurred_at => Time.now.utc.iso8601
    }
  }
end