Class: Diggit::ErrorEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/dgit/entries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ErrorEntry

Returns a new instance of ErrorEntry.



85
86
87
88
89
# File 'lib/dgit/entries.rb', line 85

def initialize(error)
  @name = error.class.name
  @message = error.to_s
  @backtrace = error.backtrace
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



83
84
85
# File 'lib/dgit/entries.rb', line 83

def backtrace
  @backtrace
end

#messageObject (readonly)

Returns the value of attribute message.



83
84
85
# File 'lib/dgit/entries.rb', line 83

def message
  @message
end

#nameObject (readonly)

Returns the value of attribute name.



83
84
85
# File 'lib/dgit/entries.rb', line 83

def name
  @name
end