Class: PacketLogEntry

Inherits:
ApplicationRecord show all
Defined in:
lib/cosmos/dart/app/models/packet_log_entry.rb

Constant Summary collapse

NOT_STARTED =
0
IN_PROGRESS =
1
COMPLETE =
2
NO_CONFIG =
3
NO_PACKET =
4
NO_META_PLE =
5
NO_META_PACKET =
6
NO_SYSTEM_CONFIG =
7
NO_PACKET_CONFIG =
8

Instance Method Summary collapse

Instance Method Details

#decom_state_stringObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/cosmos/dart/app/models/packet_log_entry.rb', line 16

def decom_state_string
  case self.decom_state
  when NOT_STARTED
    'NOT_STARTED'
  when IN_PROGRESS
    'IN_PROGRESS'
  when COMPLETE
    'COMPLETE'
  when NO_CONFIG
    'NO_CONFIG'
  when NO_PACKET
    'NO_PACKET'
  when NO_META_PLE
    'NO_META_PLE'
  when NO_META_PACKET
    'NO_META_PACKET'
  when NO_SYSTEM_CONFIG
    'NO_SYSTEM_CONFIG'
  when NO_PACKET_CONFIG
    'NO_PACKET_CONFIG'
  else
    'UNKNOWN'
  end
end