Class: Soka::Engines::React::ReasonResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/soka/engines/react.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



12
13
14
# File 'lib/soka/engines/react.rb', line 12

def error
  @error
end

#execution_timeObject

Returns the value of attribute execution_time

Returns:

  • (Object)

    the current value of execution_time



12
13
14
# File 'lib/soka/engines/react.rb', line 12

def execution_time
  @execution_time
end

#final_answerObject

Returns the value of attribute final_answer

Returns:

  • (Object)

    the current value of final_answer



12
13
14
# File 'lib/soka/engines/react.rb', line 12

def final_answer
  @final_answer
end

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



12
13
14
# File 'lib/soka/engines/react.rb', line 12

def input
  @input
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



12
13
14
# File 'lib/soka/engines/react.rb', line 12

def status
  @status
end

#thoughtsObject

Returns the value of attribute thoughts

Returns:

  • (Object)

    the current value of thoughts



12
13
14
# File 'lib/soka/engines/react.rb', line 12

def thoughts
  @thoughts
end

Instance Method Details

#successful?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/soka/engines/react.rb', line 14

def successful?
  status == :success
end