Class: Ronin::Recon::Message::Value Private
- Inherits:
-
Object
- Object
- Ronin::Recon::Message::Value
- Defined in:
- lib/ronin/recon/message/value.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Represents either an input or output value.
Instance Attribute Summary collapse
-
#depth ⇒ Integer
readonly
private
The depth of the value in relation to the input value.
-
#parent ⇒ Value?
readonly
private
The associated parent value.
-
#value ⇒ Object
readonly
private
The value's object.
-
#worker ⇒ Worker?
readonly
private
The ID of the recond worker which produced the value.
Instance Method Summary collapse
-
#initialize(value, parent: nil, depth: 0, worker: nil) ⇒ Value
constructor
private
Initializes the recon value.
Constructor Details
#initialize(value, parent: nil, depth: 0, worker: nil) ⇒ Value
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the recon value.
64 65 66 67 68 69 70 71 |
# File 'lib/ronin/recon/message/value.rb', line 64 def initialize(value, parent: nil, depth: 0, worker: nil) @value = value @parent = parent @depth = depth @worker = worker freeze end |
Instance Attribute Details
#depth ⇒ Integer (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The depth of the value in relation to the input value.
44 45 46 |
# File 'lib/ronin/recon/message/value.rb', line 44 def depth @depth end |
#parent ⇒ Value? (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The associated parent value.
39 40 41 |
# File 'lib/ronin/recon/message/value.rb', line 39 def parent @parent end |
#value ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The value's object.
34 35 36 |
# File 'lib/ronin/recon/message/value.rb', line 34 def value @value end |
#worker ⇒ Worker? (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The ID of the recond worker which produced the value.
49 50 51 |
# File 'lib/ronin/recon/message/value.rb', line 49 def worker @worker end |