Class: Ronin::Recon::Message::Value Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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.

Parameters:

  • parent (Value, nil) (defaults to: nil)

    The associated parent value.

  • depth (Integer) (defaults to: 0)

    The depth of the value object.

  • worker (Worker, nil) (defaults to: nil)

    The worker object, if the value object is an output value produced by the worker object.



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

#depthInteger (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.

Returns:

  • (Integer)


44
45
46
# File 'lib/ronin/recon/message/value.rb', line 44

def depth
  @depth
end

#parentValue? (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.

Returns:



39
40
41
# File 'lib/ronin/recon/message/value.rb', line 39

def parent
  @parent
end

#valueObject (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.

Returns:

  • (Object)


34
35
36
# File 'lib/ronin/recon/message/value.rb', line 34

def value
  @value
end

#workerWorker? (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.

Returns:



49
50
51
# File 'lib/ronin/recon/message/value.rb', line 49

def worker
  @worker
end