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



30
31
32
# File 'lib/necropsy/models.rb', line 30

def analyzer
  @analyzer
end

#detailsObject (readonly)

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



30
31
32
# File 'lib/necropsy/models.rb', line 30

def details
  @details
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



30
31
32
# File 'lib/necropsy/models.rb', line 30

def kind
  @kind
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



30
31
32
# File 'lib/necropsy/models.rb', line 30

def 
  @metadata
end

#weightObject (readonly)

Returns the value of attribute weight

Returns:

  • (Object)

    the current value of weight



30
31
32
# File 'lib/necropsy/models.rb', line 30

def weight
  @weight
end

Instance Method Details

#to_hObject



31
32
33
34
35
36
37
38
39
# File 'lib/necropsy/models.rb', line 31

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