Class: RubySMB::Dcerpc::Netlogon::NetlogonSecureChannelType

Inherits:
RubySMB::Dcerpc::Ndr::NdrEnum show all
Defined in:
lib/ruby_smb/dcerpc/netlogon.rb

Overview

Constant Summary collapse

ALL =
{
  0 => :NullSecureChannel,
  1 => :MsvApSecureChannel,
  2 => :WorkstationSecureChannel,
  3 => :TrustedDnsDomainSecureChannel,
  4 => :TrustedDomainSecureChannel,
  5 => :UasServerSecureChannel,
  6 => :ServerSecureChannel,
  7 => :CdcServerSecureChannel
}

Instance Method Summary collapse

Instance Method Details

#as_enumObject



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