Class: Apollo::Bot::Classification::Class
- Inherits:
-
Object
- Object
- Apollo::Bot::Classification::Class
- Defined in:
- lib/apollo/bot/classification.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Class
constructor
A new instance of Class.
Constructor Details
#initialize(attrs = {}) ⇒ Class
Returns a new instance of Class.
8 9 10 11 |
# File 'lib/apollo/bot/classification.rb', line 8 def initialize(attrs = {}) @class_name = attrs["class_name"] @confidence = attrs["confidence"] end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
6 7 8 |
# File 'lib/apollo/bot/classification.rb', line 6 def class_name @class_name end |
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
6 7 8 |
# File 'lib/apollo/bot/classification.rb', line 6 def confidence @confidence end |