Exception: CurrencyLayer::ConvertException

Inherits:
Exception
  • Object
show all
Defined in:
lib/currency_conversion/convert/convert_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ConvertException



7
8
9
# File 'lib/currency_conversion/convert/convert_exception.rb', line 7

def initialize(error)
  self.error = error
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



5
6
7
# File 'lib/currency_conversion/convert/convert_exception.rb', line 5

def error
  @error
end