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



52
53
54
# File 'lib/necropsy/models.rb', line 52

def node_id
  @node_id
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



52
53
54
# File 'lib/necropsy/models.rb', line 52

def reason
  @reason
end

Instance Method Details

#test?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/necropsy/models.rb', line 53

def test?
  reason == :test_suite
end

#to_hObject



57
58
59
# File 'lib/necropsy/models.rb', line 57

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