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
49 50 51 |
# File 'lib/ruby_smb/dcerpc/netlogon.rb', line 49 def as_enum ALL[value] end |
#assign(val) ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'lib/ruby_smb/dcerpc/netlogon.rb', line 53 def assign(val) if val.is_a? Symbol val = ALL.key(val) raise ArgumentError, 'invalid value name' if val.nil? end super end |