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
38 39 40 |
# File 'lib/necropsy/models.rb', line 38 def analyzer @analyzer end |
#details ⇒ Object (readonly)
Returns the value of attribute details
38 39 40 |
# File 'lib/necropsy/models.rb', line 38 def details @details end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
38 39 40 |
# File 'lib/necropsy/models.rb', line 38 def kind @kind end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
38 39 40 |
# File 'lib/necropsy/models.rb', line 38 def @metadata end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight
38 39 40 |
# File 'lib/necropsy/models.rb', line 38 def weight @weight end |
Instance Method Details
#to_h ⇒ Object
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 |