Class: RobotLab::NetworkRunHookContext
- Inherits:
-
HookContext
- Object
- HookContext
- RobotLab::NetworkRunHookContext
- Defined in:
- lib/robot_lab/hook_context.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#context ⇒ Object
Returns the value of attribute context.
-
#error ⇒ Object
Returns the value of attribute error.
-
#memory ⇒ Object
readonly
Returns the value of attribute memory.
-
#network ⇒ Object
readonly
Returns the value of attribute network.
-
#result ⇒ Object
Returns the value of attribute result.
Attributes inherited from HookContext
Instance Method Summary collapse
-
#initialize(network:, context:, memory: nil, config: nil, result: nil, error: nil) ⇒ NetworkRunHookContext
constructor
A new instance of NetworkRunHookContext.
Methods inherited from HookContext
#ext, #local, #to_h, #with_namespace
Constructor Details
#initialize(network:, context:, memory: nil, config: nil, result: nil, error: nil) ⇒ NetworkRunHookContext
Returns a new instance of NetworkRunHookContext.
92 93 94 95 96 97 98 99 100 |
# File 'lib/robot_lab/hook_context.rb', line 92 def initialize(network:, context:, memory: nil, config: nil, result: nil, error: nil, **) super(event: :network_run, **) @network = network @context = context @memory = memory @config = config @result = result @error = error end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
89 90 91 |
# File 'lib/robot_lab/hook_context.rb', line 89 def config @config end |
#context ⇒ Object
Returns the value of attribute context.
90 91 92 |
# File 'lib/robot_lab/hook_context.rb', line 90 def context @context end |
#error ⇒ Object
Returns the value of attribute error.
90 91 92 |
# File 'lib/robot_lab/hook_context.rb', line 90 def error @error end |
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
89 90 91 |
# File 'lib/robot_lab/hook_context.rb', line 89 def memory @memory end |
#network ⇒ Object (readonly)
Returns the value of attribute network.
89 90 91 |
# File 'lib/robot_lab/hook_context.rb', line 89 def network @network end |
#result ⇒ Object
Returns the value of attribute result.
90 91 92 |
# File 'lib/robot_lab/hook_context.rb', line 90 def result @result end |