Class: Raven::SingleExceptionInterface

Inherits:
Interface
  • Object
show all
Defined in:
lib/raven/interfaces/single_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Interface

inherited, #initialize, registered

Constructor Details

This class inherits a constructor from Raven::Interface

Instance Attribute Details

#moduleObject

Returns the value of attribute module.



5
6
7
# File 'lib/raven/interfaces/single_exception.rb', line 5

def module
  @module
end

#stacktraceObject

Returns the value of attribute stacktrace.



6
7
8
# File 'lib/raven/interfaces/single_exception.rb', line 6

def stacktrace
  @stacktrace
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/raven/interfaces/single_exception.rb', line 3

def type
  @type
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/raven/interfaces/single_exception.rb', line 4

def value
  @value
end

Instance Method Details

#to_hash(*args) ⇒ Object



8
9
10
11
12
# File 'lib/raven/interfaces/single_exception.rb', line 8

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