@@ -112,7 +112,7 @@ def exchange_with(from, to_currency, &)
112112 if from . currency == to_currency
113113 from
114114 else
115- if rate = get_rate ( from . currency , to_currency )
115+ if ( rate = get_rate ( from . currency , to_currency ) )
116116 fractional = calculate_fractional ( from , to_currency )
117117 from . dup_with (
118118 fractional : exchange ( fractional , rate , &) ,
@@ -175,7 +175,7 @@ def add_rate(from, to, rate)
175175 # bank = Money::Bank::VariableExchange.new
176176 # bank.set_rate("USD", "CAD", 1.24515)
177177 # bank.set_rate("CAD", "USD", 0.803115)
178- def set_rate ( from , to , rate , opts = { } )
178+ def set_rate ( from , to , rate , _opts = { } )
179179 store . add_rate ( Currency . wrap ( from ) . iso_code , Currency . wrap ( to ) . iso_code , rate )
180180 end
181181
@@ -196,7 +196,7 @@ def set_rate(from, to, rate, opts = {})
196196 #
197197 # bank.get_rate("USD", "CAD") #=> 1.24515
198198 # bank.get_rate("CAD", "USD") #=> 0.803115
199- def get_rate ( from , to , opts = { } )
199+ def get_rate ( from , to , _opts = { } )
200200 store . get_rate ( Currency . wrap ( from ) . iso_code , Currency . wrap ( to ) . iso_code )
201201 end
202202
@@ -219,7 +219,7 @@ def get_rate(from, to, opts = {})
219219 #
220220 # s = bank.export_rates(:json)
221221 # s #=> "{\"USD_TO_CAD\":1.24515,\"CAD_TO_USD\":0.803115}"
222- def export_rates ( format , file = nil , opts = { } )
222+ def export_rates ( format , file = nil , _opts = { } )
223223 raise Money ::Bank ::UnknownRateFormat unless RATE_FORMATS . include? ( format )
224224
225225 store . transaction do
@@ -259,7 +259,7 @@ def rates
259259 #
260260 # bank.get_rate("USD", "CAD") #=> 1.24515
261261 # bank.get_rate("CAD", "USD") #=> 0.803115
262- def import_rates ( format , string , opts = { } )
262+ def import_rates ( format , string , _opts = { } )
263263 raise Money ::Bank ::UnknownRateFormat unless RATE_FORMATS . include? ( format )
264264
265265 if format == :ruby
0 commit comments