Class: Rex::Proto::NTLM::Base::Field
- Inherits:
-
Object
- Object
- Rex::Proto::NTLM::Base::Field
- Defined in:
- lib/rex/proto/ntlm/base.rb
Overview
base classes for primitives
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Field
constructor
A new instance of Field.
- #size ⇒ Object
Constructor Details
#initialize(opts) ⇒ Field
Returns a new instance of Field.
58 59 60 61 |
# File 'lib/rex/proto/ntlm/base.rb', line 58 def initialize(opts) @value = opts[:value] @active = opts[:active].nil? ? true : opts[:active] end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
56 57 58 |
# File 'lib/rex/proto/ntlm/base.rb', line 56 def active @active end |
#value ⇒ Object
Returns the value of attribute value.
56 57 58 |
# File 'lib/rex/proto/ntlm/base.rb', line 56 def value @value end |
Instance Method Details
#size ⇒ Object
63 64 65 |
# File 'lib/rex/proto/ntlm/base.rb', line 63 def size @active ? @size : 0 end |