lib/money/bank/xrates_currency.rb
##
# Flushes all the rates if they are expired.
#
# @return [Boolean]
Flushes all the rates if they are expired.
Flushes all the rates if they are expired .
def expire_rates
        if self.class.ttl_in_seconds && self.class.rates_expiration <= Time.now
          flush_rates
          self.class.refresh_rates_expiration!
          true
        else
          false
        end
      end
def expire_rates if self . class . ttl_in_seconds && self . class . rates_expiration <= Time . now flush_rates self . class . refresh_rates_expiration! true else false end end
Flushes all the rates if they are expired.
Flushes all the rates if they are expired .
None
Boolean