Class: Necropsy::Evidence
- Inherits:
-
Data
- Object
- Data
- Necropsy::Evidence
- Defined in:
- lib/necropsy/models.rb
Instance Attribute Summary collapse
-
#analyzer ⇒ Object
readonly
Returns the value of attribute analyzer.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
Instance Attribute Details
#analyzer ⇒ Object (readonly)
Returns the value of attribute analyzer
30 31 32 |
# File 'lib/necropsy/models.rb', line 30 def analyzer @analyzer end |
#details ⇒ Object (readonly)
Returns the value of attribute details
30 31 32 |
# File 'lib/necropsy/models.rb', line 30 def details @details end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
30 31 32 |
# File 'lib/necropsy/models.rb', line 30 def kind @kind end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
30 31 32 |
# File 'lib/necropsy/models.rb', line 30 def @metadata end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight
30 31 32 |
# File 'lib/necropsy/models.rb', line 30 def weight @weight end |
Instance Method Details
#to_h ⇒ Object
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 |