Class: OmniCat::Result
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#scores ⇒ Object
Returns the value of attribute scores.
-
#total_score ⇒ Object
Returns the value of attribute total_score.
Instance Method Summary collapse
-
#initialize ⇒ Result
constructor
A new instance of Result.
Methods inherited from Base
Constructor Details
#initialize ⇒ Result
Returns a new instance of Result.
5 6 7 8 9 |
# File 'lib/omnicat/result.rb', line 5 def initialize self.category = {} self.scores = {} self.total_score = 0 end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
3 4 5 |
# File 'lib/omnicat/result.rb', line 3 def category @category end |
#scores ⇒ Object
Returns the value of attribute scores.
3 4 5 |
# File 'lib/omnicat/result.rb', line 3 def scores @scores end |
#total_score ⇒ Object
Returns the value of attribute total_score.
3 4 5 |
# File 'lib/omnicat/result.rb', line 3 def total_score @total_score end |