Skip to content

Commit

Permalink
typo fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Özgür ÖZKAN committed Mar 2, 2013
1 parent d07dd10 commit 6338f5d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/money/bank/tcmb_currency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ class TcmbCurrency < Money::Bank::VariableExchange

attr_reader :rates


def flush_rates
@mutex.synchronize{
@rates = {}
}
end


def flush_rate(from, to, date)
key = rate_key_for(from, to)
@mutex.synchronize{
Expand Down Expand Up @@ -66,7 +64,6 @@ def get_rate(from, to, date)

private


def fetch_rate(from, to, date)
from, to = Currency.wrap(from), Currency.wrap(to)

Expand All @@ -76,7 +73,6 @@ def fetch_rate(from, to, date)

return data['amount']
end


def build_uri(from, to, date)

Expand All @@ -86,7 +82,6 @@ def build_uri(from, to, date)
:query => "cash=1&from=#{from.iso_code}&to=#{to.iso_code}&date=#{date}"
)
end


def fix_response_json_data(data)
data.gsub!(/from:/, '"from":')
Expand All @@ -104,5 +99,3 @@ def rate_key_for(from, to, date)
end
end
end


0 comments on commit 6338f5d

Please sign in to comment.