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



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