Class: RecastAI::DialogConversation
- Inherits:
-
Object
- Object
- RecastAI::DialogConversation
- Defined in:
- lib/recastai/apis/build/dialog_conversation.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#memory ⇒ Object
readonly
Returns the value of attribute memory.
-
#skill ⇒ Object
readonly
Returns the value of attribute skill.
-
#skill_occurences ⇒ Object
readonly
Returns the value of attribute skill_occurences.
Instance Method Summary collapse
-
#initialize(conv) ⇒ DialogConversation
constructor
A new instance of DialogConversation.
Constructor Details
#initialize(conv) ⇒ DialogConversation
Returns a new instance of DialogConversation.
5 6 7 8 9 10 11 |
# File 'lib/recastai/apis/build/dialog_conversation.rb', line 5 def initialize(conv) @id = conv['conversation_id'] || conv['id'] @language = conv['language'] @memory = conv['memory'] @skill = conv['skill'] || conv['last_skill'] @skill_occurences = conv['skill_occurences'] || skill['last_skill_occurences'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/recastai/apis/build/dialog_conversation.rb', line 3 def id @id end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
3 4 5 |
# File 'lib/recastai/apis/build/dialog_conversation.rb', line 3 def language @language end |
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
3 4 5 |
# File 'lib/recastai/apis/build/dialog_conversation.rb', line 3 def memory @memory end |
#skill ⇒ Object (readonly)
Returns the value of attribute skill.
3 4 5 |
# File 'lib/recastai/apis/build/dialog_conversation.rb', line 3 def skill @skill end |
#skill_occurences ⇒ Object (readonly)
Returns the value of attribute skill_occurences.
3 4 5 |
# File 'lib/recastai/apis/build/dialog_conversation.rb', line 3 def skill_occurences @skill_occurences end |