Class: Sapcai::Intent
- Inherits:
-
Object
- Object
- Sapcai::Intent
- Defined in:
- lib/sapcai/apis/request/models/intent.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(intent) ⇒ Intent
constructor
A new instance of Intent.
Constructor Details
#initialize(intent) ⇒ Intent
Returns a new instance of Intent.
8 9 10 11 |
# File 'lib/sapcai/apis/request/models/intent.rb', line 8 def initialize(intent) @slug = intent['slug'] @confidence = intent['confidence'] end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
6 7 8 |
# File 'lib/sapcai/apis/request/models/intent.rb', line 6 def confidence @confidence end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
5 6 7 |
# File 'lib/sapcai/apis/request/models/intent.rb', line 5 def slug @slug end |