Class: A2A::Agent::Handler
- Inherits:
-
Object
- Object
- A2A::Agent::Handler
- Defined in:
- lib/a2a/agent.rb
Overview
Internal handler object produced by the #on DSL method. Conforms to the Dispatcher duck-type: #operations, #call.
Instance Attribute Summary collapse
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(agent:, operations:, block:) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize(agent:, operations:, block:) ⇒ Handler
Returns a new instance of Handler.
59 60 61 62 63 |
# File 'lib/a2a/agent.rb', line 59 def initialize(agent:, operations:, block:) @agent = agent @operations = operations @block = block end |
Instance Attribute Details
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
57 58 59 |
# File 'lib/a2a/agent.rb', line 57 def operations @operations end |