Class: TurboRex::Windows::Security::AccessAllowedACE

Inherits:
ACE
  • Object
show all
Defined in:
lib/turborex/windows/security/ace.rb

Instance Attribute Summary collapse

Attributes inherited from ACE

#flags, #type

Instance Method Summary collapse

Methods inherited from ACE

from_raw

Constructor Details

#initialize(mask, sid, flags, type = TurboRex::Windows::Constants::ACCESS_ALLOWED_ACE_TYPE) ⇒ AccessAllowedACE

Returns a new instance of AccessAllowedACE.



41
42
43
44
45
46
# File 'lib/turborex/windows/security/ace.rb', line 41

def initialize(mask, sid, flags, type=TurboRex::Windows::Constants::ACCESS_ALLOWED_ACE_TYPE)
  @mask = mask
  @sid = sid
  @short = :allowed
  super(type, flags)
end

Instance Attribute Details

#maskObject (readonly)

Returns the value of attribute mask.



37
38
39
# File 'lib/turborex/windows/security/ace.rb', line 37

def mask
  @mask
end

#shortObject (readonly)

Returns the value of attribute short.



39
40
41
# File 'lib/turborex/windows/security/ace.rb', line 39

def short
  @short
end

#sidObject (readonly)

Returns the value of attribute sid.



38
39
40
# File 'lib/turborex/windows/security/ace.rb', line 38

def sid
  @sid
end