Class: Score
- Inherits:
-
Object
- Object
- Score
- Defined in:
- lib/gorse.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, score) ⇒ Score
constructor
A new instance of Score.
Constructor Details
#initialize(id, score) ⇒ Score
Returns a new instance of Score.
41 42 43 44 |
# File 'lib/gorse.rb', line 41 def initialize(id, score) @id = id @score = score end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
51 52 53 |
# File 'lib/gorse.rb', line 51 def id @id end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
51 52 53 |
# File 'lib/gorse.rb', line 51 def score @score end |