Class: TrueskillThroughTime::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/TrueskillThroughTime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#likelihoodObject

Returns the value of attribute likelihood.



678
679
680
# File 'lib/TrueskillThroughTime.rb', line 678

def likelihood
  @likelihood
end

#nameObject

Returns the value of attribute name.



678
679
680
# File 'lib/TrueskillThroughTime.rb', line 678

def name
  @name
end

Instance Method Details

#inspectObject



688
689
690
# File 'lib/TrueskillThroughTime.rb', line 688

def inspect
  { 'name' => @name, 'likelihood' => @likelihood }.to_s
end

#to_sObject



684
685
686
# File 'lib/TrueskillThroughTime.rb', line 684

def to_s
  inspect
end