Class: Necropsy::EntryPoint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#node_idObject (readonly)

Returns the value of attribute node_id

Returns:

  • (Object)

    the current value of node_id



60
61
62
# File 'lib/necropsy/models.rb', line 60

def node_id
  @node_id
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



60
61
62
# File 'lib/necropsy/models.rb', line 60

def reason
  @reason
end

Instance Method Details

#test?Boolean

Returns:

  • (Boolean)


61
62
63
# File 'lib/necropsy/models.rb', line 61

def test?
  reason == :test_suite
end

#to_hObject



65
66
67
# File 'lib/necropsy/models.rb', line 65

def to_h
  { 'node_id' => node_id, 'reason' => reason.to_s }
end