Class: Necropsy::Evidence

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#analyzerObject (readonly)

Returns the value of attribute analyzer

Returns:

  • (Object)

    the current value of analyzer



38
39
40
# File 'lib/necropsy/models.rb', line 38

def analyzer
  @analyzer
end

#detailsObject (readonly)

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



38
39
40
# File 'lib/necropsy/models.rb', line 38

def details
  @details
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



38
39
40
# File 'lib/necropsy/models.rb', line 38

def kind
  @kind
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



38
39
40
# File 'lib/necropsy/models.rb', line 38

def 
  @metadata
end

#weightObject (readonly)

Returns the value of attribute weight

Returns:

  • (Object)

    the current value of weight



38
39
40
# File 'lib/necropsy/models.rb', line 38

def weight
  @weight
end

Instance Method Details

#to_hObject



39
40
41
42
43
44
45
46
47
# File 'lib/necropsy/models.rb', line 39

def to_h
  {
    'analyzer' => analyzer.to_s,
    'kind' => kind.to_s,
    'weight' => weight,
    'details' => details,
    'metadata' => 
  }
end