Exception: Oddx::OddxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/oddx/oddx_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg: "Ensure provided odds match supported formats", odds: nil) ⇒ OddxError



6
7
8
9
# File 'lib/oddx/oddx_error.rb', line 6

def initialize(msg: "Ensure provided odds match supported formats", odds: nil)
  @odds = odds
  super(msg)
end

Instance Attribute Details

#oddsObject (readonly)

Returns the value of attribute odds.



5
6
7
# File 'lib/oddx/oddx_error.rb', line 5

def odds
  @odds
end