Class: RobotLab::RunHookContext
- Inherits:
-
HookContext
- Object
- HookContext
- RobotLab::RunHookContext
- Defined in:
- lib/robot_lab/hook_context.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#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.
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
-
#robot ⇒ Object
readonly
Returns the value of attribute robot.
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Attributes inherited from HookContext
Instance Method Summary collapse
-
#initialize(robot:, request:, network: nil, task: nil, memory: nil, config: nil, response: nil, error: nil) ⇒ RunHookContext
constructor
A new instance of RunHookContext.
Methods inherited from HookContext
#ext, #local, #to_h, #with_namespace
Constructor Details
#initialize(robot:, request:, network: nil, task: nil, memory: nil, config: nil, response: nil, error: nil) ⇒ RunHookContext
Returns a new instance of RunHookContext.
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/robot_lab/hook_context.rb', line 49 def initialize(robot:, request:, network: nil, task: nil, memory: nil, config: nil, response: nil, error: nil, **) super(event: :run, **) @robot = robot @network = network @task = task @memory = memory @config = config @request = request @response = response @error = error end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
46 47 48 |
# File 'lib/robot_lab/hook_context.rb', line 46 def config @config end |
#error ⇒ Object
Returns the value of attribute error.
47 48 49 |
# File 'lib/robot_lab/hook_context.rb', line 47 def error @error end |
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
46 47 48 |
# File 'lib/robot_lab/hook_context.rb', line 46 def memory @memory end |
#network ⇒ Object (readonly)
Returns the value of attribute network.
46 47 48 |
# File 'lib/robot_lab/hook_context.rb', line 46 def network @network end |
#request ⇒ Object
Returns the value of attribute request.
47 48 49 |
# File 'lib/robot_lab/hook_context.rb', line 47 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
47 48 49 |
# File 'lib/robot_lab/hook_context.rb', line 47 def response @response end |
#robot ⇒ Object (readonly)
Returns the value of attribute robot.
46 47 48 |
# File 'lib/robot_lab/hook_context.rb', line 46 def robot @robot end |
#task ⇒ Object (readonly)
Returns the value of attribute task.
46 47 48 |
# File 'lib/robot_lab/hook_context.rb', line 46 def task @task end |