# File lib/active_merchant/billing/credit_card_methods.rb, line 87 def last_digits(number) number.to_s.length <= 4 ? number : number.to_s.slice(-4..-1) end