Class: YandexMoney::Logger::Default

Inherits:
Logger
  • Object
show all
Defined in:
lib/yandex_money/logger/default.rb

Direct Known Subclasses

Empty

Instance Method Summary collapse

Instance Method Details

#mask_token(token) ⇒ Object

if token exists, then extract first 8 symbols and last 8 symbols, and join it with “..”



8
9
10
11
12
13
14
# File 'lib/yandex_money/logger/default.rb', line 8

def mask_token(token)
  if token
    token.match(/\A(.?{8}).*?(.?{8})\z/)[1,2].join("..")
  else
    nil
  end
end