Module: Api::DebugTestProcess::Test
- Defined in:
- lib/sc2ai/protocol/debug_pb.rb
Constant Summary collapse
- ENUM_TEST_UNSET =
0
- HANG =
1
- CRASH =
2
- EXIT =
3
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 |
# File 'lib/sc2ai/protocol/debug_pb.rb', line 8499 def self.lookup(val) if val == 0 :ENUM_TEST_UNSET elsif val == 1 :HANG elsif val == 2 :CRASH elsif val == 3 :EXIT end end |
.resolve(val) ⇒ Object
8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 |
# File 'lib/sc2ai/protocol/debug_pb.rb', line 8511 def self.resolve(val) if val == :ENUM_TEST_UNSET 0 elsif val == :HANG 1 elsif val == :CRASH 2 elsif val == :EXIT 3 end end |