Class: Intelligence::ChatResultChoice
- Inherits:
-
Object
- Object
- Intelligence::ChatResultChoice
- Defined in:
- lib/intelligence/chat_result_choice.rb
Instance Attribute Summary collapse
-
#end_reason ⇒ Object
readonly
Returns the value of attribute end_reason.
-
#end_sequence ⇒ Object
readonly
Returns the value of attribute end_sequence.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(chat_choice_attributes) ⇒ ChatResultChoice
constructor
A new instance of ChatResultChoice.
Constructor Details
#initialize(chat_choice_attributes) ⇒ ChatResultChoice
Returns a new instance of ChatResultChoice.
9 10 11 12 13 14 |
# File 'lib/intelligence/chat_result_choice.rb', line 9 def initialize( chat_choice_attributes ) @end_reason = chat_choice_attributes[ :end_reason ] @end_sequence = chat_choice_attributes[ :end_sequence ] @message = ( chat_choice_attributes[ :message ] ) \ if chat_choice_attributes[ :message ] end |
Instance Attribute Details
#end_reason ⇒ Object (readonly)
Returns the value of attribute end_reason.
6 7 8 |
# File 'lib/intelligence/chat_result_choice.rb', line 6 def end_reason @end_reason end |
#end_sequence ⇒ Object (readonly)
Returns the value of attribute end_sequence.
7 8 9 |
# File 'lib/intelligence/chat_result_choice.rb', line 7 def end_sequence @end_sequence end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/intelligence/chat_result_choice.rb', line 5 def @message end |