Module: NluAdapterIntent
- Included in:
- NluAdapter::Adapters::Dialogflow::Intent, NluAdapter::Adapters::Lex::Intent, NluAdapter::Adapters::WatsonAssistant::Intent
- Defined in:
- lib/nlu_adapter/intent.rb
Overview
Class represents Intent in an IntentCollection
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#utterences ⇒ Object
Returns the value of attribute utterences.
Instance Method Summary collapse
-
#to_h ⇒ Hash
Convert self to Hash.
-
#to_json ⇒ Json
Convert self to Json.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/nlu_adapter/intent.rb', line 5 def name @name end |
#utterences ⇒ Object
Returns the value of attribute utterences.
5 6 7 |
# File 'lib/nlu_adapter/intent.rb', line 5 def utterences @utterences end |
Instance Method Details
#to_h ⇒ Hash
Convert self to Hash
10 11 12 13 14 15 |
# File 'lib/nlu_adapter/intent.rb', line 10 def to_h { :name => @name, :utterences => @utterences } end |
#to_json ⇒ Json
Convert self to Json
20 21 22 |
# File 'lib/nlu_adapter/intent.rb', line 20 def to_json to_h.to_json end |