Class: Necropsy::SourceError

Inherits:
Data
  • Object
show all
Defined in:
lib/necropsy/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



851
852
853
# File 'lib/necropsy/models.rb', line 851

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



851
852
853
# File 'lib/necropsy/models.rb', line 851

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



851
852
853
# File 'lib/necropsy/models.rb', line 851

def message
  @message
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



851
852
853
# File 'lib/necropsy/models.rb', line 851

def type
  @type
end

Instance Method Details

#to_hObject



852
853
854
855
856
857
858
859
# File 'lib/necropsy/models.rb', line 852

def to_h
  {
    'file' => file,
    'line' => line,
    'message' => message,
    'type' => type.to_s
  }
end