Class: RobotLab::NetworkRunHookContext

Inherits:
HookContext show all
Defined in:
lib/robot_lab/hook_context.rb

Instance Attribute Summary collapse

Attributes inherited from HookContext

#event, #metadata

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



89
90
91
# File 'lib/robot_lab/hook_context.rb', line 89

def config
  @config
end

#contextObject

Returns the value of attribute context.



90
91
92
# File 'lib/robot_lab/hook_context.rb', line 90

def context
  @context
end

#errorObject

Returns the value of attribute error.



90
91
92
# File 'lib/robot_lab/hook_context.rb', line 90

def error
  @error
end

#memoryObject (readonly)

Returns the value of attribute memory.



89
90
91
# File 'lib/robot_lab/hook_context.rb', line 89

def memory
  @memory
end

#networkObject (readonly)

Returns the value of attribute network.



89
90
91
# File 'lib/robot_lab/hook_context.rb', line 89

def network
  @network
end

#resultObject

Returns the value of attribute result.



90
91
92
# File 'lib/robot_lab/hook_context.rb', line 90

def result
  @result
end