Class: RubySMB::Dcerpc::Netlogon::NetlogonSecureChannelType
- Inherits:
-
RubySMB::Dcerpc::Ndr::NdrEnum
- Object
- BinData::Int16le
- RubySMB::Dcerpc::Ndr::NdrEnum
- RubySMB::Dcerpc::Netlogon::NetlogonSecureChannelType
- Defined in:
- lib/ruby_smb/dcerpc/netlogon.rb
Overview
Constant Summary collapse
- ALL =
enum example from dmendel/bindata#38 https://github.com/dmendel/bindata/issues/38#issuecomment-46397163
{ 0 => :NullSecureChannel, 1 => :MsvApSecureChannel, 2 => :WorkstationSecureChannel, 3 => :TrustedDnsDomainSecureChannel, 4 => :TrustedDomainSecureChannel, 5 => :UasServerSecureChannel, 6 => :ServerSecureChannel, 7 => :CdcServerSecureChannel }
Instance Method Summary collapse
Instance Method Details
#as_enum ⇒ Object
48 49 50 |
# File 'lib/ruby_smb/dcerpc/netlogon.rb', line 48 def as_enum ALL[value] end |
#assign(val) ⇒ Object
52 53 54 55 56 57 58 59 |
# File 'lib/ruby_smb/dcerpc/netlogon.rb', line 52 def assign(val) if val.is_a? Symbol val = ALL.key(val) raise ArgumentError, 'invalid value name' if val.nil? end super end |