Class: Parlay
- Inherits:
-
Object
- Object
- Parlay
- Includes:
- Bet::ExpectedProfit, FromHash
- Defined in:
- lib/odds/parlay.rb
Instance Attribute Summary collapse
-
#wagered_amount ⇒ Object
Returns the value of attribute wagered_amount.
Instance Method Summary collapse
Methods included from Bet::ExpectedProfit
Instance Attribute Details
#wagered_amount ⇒ Object
Returns the value of attribute wagered_amount.
4 5 6 |
# File 'lib/odds/parlay.rb', line 4 def wagered_amount @wagered_amount end |
Instance Method Details
#odds ⇒ Object
7 8 9 |
# File 'lib/odds/parlay.rb', line 7 def odds bets.map { |x| x.odds }.times_product end |
#win_chance ⇒ Object
11 12 13 |
# File 'lib/odds/parlay.rb', line 11 def win_chance bets.map { |x| x.win_chance }.times_product end |