Class: Raven::ExceptionInterface

Inherits:
Interface show all
Defined in:
lib/raven/interfaces/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Interface

#initialize, name

Methods included from BetterAttrAccessor

#attributes, included

Constructor Details

This class inherits a constructor from Raven::Interface

Instance Attribute Details

#moduleObject

Returns the value of attribute module.



9
10
11
# File 'lib/raven/interfaces/exception.rb', line 9

def module
  @module
end

#stacktraceObject

Returns the value of attribute stacktrace.



10
11
12
# File 'lib/raven/interfaces/exception.rb', line 10

def stacktrace
  @stacktrace
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/raven/interfaces/exception.rb', line 7

def type
  @type
end

#valueObject

Returns the value of attribute value.



8
9
10
# File 'lib/raven/interfaces/exception.rb', line 8

def value
  @value
end

Instance Method Details

#to_hash(*args) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/raven/interfaces/exception.rb', line 12

def to_hash(*args)
  data = super(*args)
  if data['stacktrace']
    data['stacktrace'] = data['stacktrace'].to_hash
  end
  data
end