Exception: Oddx::OddxError
- Inherits:
-
StandardError
- Object
- StandardError
- Oddx::OddxError
- Defined in:
- lib/oddx/oddx_error.rb
Instance Attribute Summary collapse
-
#odds ⇒ Object
readonly
Returns the value of attribute odds.
Instance Method Summary collapse
-
#initialize(msg: "Ensure provided odds match supported formats", odds: nil) ⇒ OddxError
constructor
A new instance of OddxError.
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
#odds ⇒ Object (readonly)
Returns the value of attribute odds.
5 6 7 |
# File 'lib/oddx/oddx_error.rb', line 5 def odds @odds end |