Class: Swarm::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/swarm/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#agentObject

Returns the value of attribute agent.



33
34
35
# File 'lib/swarm/types.rb', line 33

def agent
  @agent
end

#context_variablesObject

Returns the value of attribute context_variables.



33
34
35
# File 'lib/swarm/types.rb', line 33

def context_variables
  @context_variables
end

#valueObject

Returns the value of attribute value.



33
34
35
# File 'lib/swarm/types.rb', line 33

def value
  @value
end