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.
7 8 9 10 11 |
# File 'lib/omnicat/result.rb', line 7 def initialize self.category = {} self.scores = {} self.total_score = 0 end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
5 6 7 |
# File 'lib/omnicat/result.rb', line 5 def category @category end |
#scores ⇒ Object
Returns the value of attribute scores.
5 6 7 |
# File 'lib/omnicat/result.rb', line 5 def scores @scores end |
#total_score ⇒ Object
Returns the value of attribute total_score.
5 6 7 |
# File 'lib/omnicat/result.rb', line 5 def total_score @total_score end |