Class: Kameleoon::CBScores::ScoredVarId

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/data/cbscores.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variation_id, score) ⇒ ScoredVarId

Returns a new instance of ScoredVarId.



23
24
25
26
# File 'lib/kameleoon/data/cbscores.rb', line 23

def initialize(variation_id, score)
  @variation_id = variation_id
  @score = score
end

Instance Attribute Details

#scoreObject (readonly)

Returns the value of attribute score.



21
22
23
# File 'lib/kameleoon/data/cbscores.rb', line 21

def score
  @score
end

#variation_idObject (readonly)

Returns the value of attribute variation_id.



21
22
23
# File 'lib/kameleoon/data/cbscores.rb', line 21

def variation_id
  @variation_id
end