Class: Rex::Proto::MsTds::MsTdsVersion
- Inherits:
-
BinData::Uint32be
- Object
- BinData::Uint32be
- Rex::Proto::MsTds::MsTdsVersion
- Defined in:
- lib/rex/proto/ms_tds/ms_tds_version.rb
Constant Summary collapse
- VERSION_7_0 =
0x70- VERSION_7_1 =
0x71- VERSION_7_2 =
0x72- VERSION_7_3 =
0x73- VERSION_7_4 =
0x74
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.name(value) ⇒ Object
9 10 11 |
# File 'lib/rex/proto/ms_tds/ms_tds_version.rb', line 9 def self.name(value) constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value } end |
Instance Method Details
#to_sym ⇒ Object
13 14 15 |
# File 'lib/rex/proto/ms_tds/ms_tds_version.rb', line 13 def to_sym self.class.name(value) end |