Sha256: 2ab598e83b8956938efdac1651ff22eb51bae09be84edeeb5ce1ab85b91d5eec

Contents?: true

Size: 754 Bytes

Versions: 24

Compression:

Stored size: 754 Bytes

Contents

class PacketLogEntry < ApplicationRecord
  belongs_to :target
  belongs_to :packet
  belongs_to :packet_log

  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

  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

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cosmos-4.2.1-java lib/cosmos/dart/app/models/packet_log_entry.rb
cosmos-4.2.1 lib/cosmos/dart/app/models/packet_log_entry.rb
cosmos-4.2.0-java lib/cosmos/dart/app/models/packet_log_entry.rb
cosmos-4.2.0 lib/cosmos/dart/app/models/packet_log_entry.rb