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.



87
88
89
90
91
# File 'lib/dgit/entries.rb', line 87

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.



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

def backtrace
  @backtrace
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end