Class: Necropsy::EntryPoint
- Inherits:
-
Data
- Object
- Data
- Necropsy::EntryPoint
- Defined in:
- lib/necropsy/models.rb
Instance Attribute Summary collapse
-
#node_id ⇒ Object
readonly
Returns the value of attribute node_id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
Instance Attribute Details
#node_id ⇒ Object (readonly)
Returns the value of attribute node_id
52 53 54 |
# File 'lib/necropsy/models.rb', line 52 def node_id @node_id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
52 53 54 |
# File 'lib/necropsy/models.rb', line 52 def reason @reason end |
Instance Method Details
#test? ⇒ Boolean
53 54 55 |
# File 'lib/necropsy/models.rb', line 53 def test? reason == :test_suite end |
#to_h ⇒ Object
57 58 59 |
# File 'lib/necropsy/models.rb', line 57 def to_h { 'node_id' => node_id, 'reason' => reason.to_s } end |