Class: Swarm::Result
- Inherits:
-
Object
- Object
- Swarm::Result
- Defined in:
- lib/swarm/types.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#context_variables ⇒ Object
Returns the value of attribute context_variables.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value: "", agent: nil, context_variables: {}) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(value: "", agent: nil, context_variables: {}) ⇒ Result
Returns a new instance of Result.
35 36 37 38 39 |
# File 'lib/swarm/types.rb', line 35 def initialize(value: "", agent: nil, context_variables: {}) @value = value @agent = agent @context_variables = context_variables end |
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent.
33 34 35 |
# File 'lib/swarm/types.rb', line 33 def agent @agent end |
#context_variables ⇒ Object
Returns the value of attribute context_variables.
33 34 35 |
# File 'lib/swarm/types.rb', line 33 def context_variables @context_variables end |
#value ⇒ Object
Returns the value of attribute value.
33 34 35 |
# File 'lib/swarm/types.rb', line 33 def value @value end |