Class: Rex::Proto::Thrift::ThriftMessageType

Inherits:
BinData::Uint16be
  • Object
show all
Defined in:
lib/rex/proto/thrift.rb

Constant Summary collapse

CALL =
1
REPLY =
2
EXCEPTION =
3

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.name(value) ⇒ Object



111
112
113
# File 'lib/rex/proto/thrift.rb', line 111

def self.name(value)
  constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value }
end

Instance Method Details

#to_symObject



115
116
117
# File 'lib/rex/proto/thrift.rb', line 115

def to_sym
  self.class.name(value)
end