Exception: Num2words::UnsupportedCurrencyAmountError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- Num2words::UnsupportedCurrencyAmountError
- Defined in:
- lib/num2words/errors.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
Instance Method Summary collapse
-
#initialize(amount) ⇒ UnsupportedCurrencyAmountError
constructor
A new instance of UnsupportedCurrencyAmountError.
Constructor Details
#initialize(amount) ⇒ UnsupportedCurrencyAmountError
Returns a new instance of UnsupportedCurrencyAmountError.
43 44 45 46 47 |
# File 'lib/num2words/errors.rb', line 43 def initialize(amount) @amount = amount super("Unsupported currency amount: #{amount.inspect}") end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
41 42 43 |
# File 'lib/num2words/errors.rb', line 41 def amount @amount end |