module Converter::Validator::ClassMethods
Private Instance Methods
validate_conversion_rates(base_currency, other_currencies)
click to toggle source
# File lib/converter/money/validator.rb, line 5 def validate_conversion_rates(base_currency, other_currencies) raise ArgumentError, 'Invalid Options: options must be a hash' unless other_currencies.is_a? Hash raise ArgumentError, 'Empty hash' if other_currencies.empty? end