Class: OmniCat::Result

Inherits:
Base
  • Object
show all
Defined in:
lib/omnicat/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_hash

Constructor Details

#initializeResult

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

#categoryObject

Returns the value of attribute category.



3
4
5
# File 'lib/omnicat/result.rb', line 3

def category
  @category
end

#scoresObject

Returns the value of attribute scores.



3
4
5
# File 'lib/omnicat/result.rb', line 3

def scores
  @scores
end

#total_scoreObject

Returns the value of attribute total_score.



3
4
5
# File 'lib/omnicat/result.rb', line 3

def total_score
  @total_score
end