Class: CognitiveVision::Category
- Inherits:
-
Object
- Object
- CognitiveVision::Category
- Defined in:
- lib/cognitive_vision/category.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(options = {}) ⇒ Category
Returns a new instance of Category.
5 6 7 8 |
# File 'lib/cognitive_vision/category.rb', line 5 def initialize( = {}) @name = .fetch(:name) @score = .fetch(:score) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/cognitive_vision/category.rb', line 3 def name @name end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
3 4 5 |
# File 'lib/cognitive_vision/category.rb', line 3 def score @score end |