Class: Watobo::NTLM::Field
- Inherits:
-
Object
- Object
- Watobo::NTLM::Field
- Defined in:
- lib/watobo/utils/ntlm.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
306 307 308 309 |
# File 'lib/watobo/utils/ntlm.rb', line 306 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.
304 305 306 |
# File 'lib/watobo/utils/ntlm.rb', line 304 def active @active end |
#value ⇒ Object
Returns the value of attribute value.
304 305 306 |
# File 'lib/watobo/utils/ntlm.rb', line 304 def value @value end |
Instance Method Details
#size ⇒ Object
311 312 313 |
# File 'lib/watobo/utils/ntlm.rb', line 311 def size @active ? @size : 0 end |