class OmniCat::Score

Attributes

key[RW]
percentage[RW]
value[RW]

Public Class Methods

new(score_hash = {}) click to toggle source
# File lib/omnicat/score.rb, line 9
def initialize(score_hash = {})
  @key = score_hash[:key]
  @value = score_hash[:value]
  @percentage = score_hash[:percentage] || 0
end