Class: TrueskillThroughTime::Item
- Inherits:
-
Object
- Object
- TrueskillThroughTime::Item
- Defined in:
- lib/TrueskillThroughTime.rb
Instance Attribute Summary collapse
-
#likelihood ⇒ Object
Returns the value of attribute likelihood.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, likelihood) ⇒ Item
constructor
A new instance of Item.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(name, likelihood) ⇒ Item
Returns a new instance of Item.
679 680 681 682 |
# File 'lib/TrueskillThroughTime.rb', line 679 def initialize(name, likelihood) @name = name @likelihood = likelihood end |
Instance Attribute Details
#likelihood ⇒ Object
Returns the value of attribute likelihood.
678 679 680 |
# File 'lib/TrueskillThroughTime.rb', line 678 def likelihood @likelihood end |
#name ⇒ Object
Returns the value of attribute name.
678 679 680 |
# File 'lib/TrueskillThroughTime.rb', line 678 def name @name end |
Instance Method Details
#inspect ⇒ Object
688 689 690 |
# File 'lib/TrueskillThroughTime.rb', line 688 def inspect { 'name' => @name, 'likelihood' => @likelihood }.to_s end |
#to_s ⇒ Object
684 685 686 |
# File 'lib/TrueskillThroughTime.rb', line 684 def to_s inspect end |