Class: ROdds::Odd::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/r_odds/odds/base.rb

Direct Known Subclasses

American, Decimal, Fractional, ImpliedProbability

Instance Method Summary collapse

Instance Method Details

#formatObject

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/r_odds/odds/base.rb', line 4

def format
  raise NotImplementedError, "Subclasses must impliment this themselves"
end

#to_sObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/r_odds/odds/base.rb', line 8

def to_s
  raise NotImplementedError, "Subclasses must impliment this themselves"
end