Method: BC::API::Parser.parse_tr_ytd

Defined in:
lib/bloomberg_currency/api/parser.rb

.parse_tr_ytd(tr_ytd_str) ⇒ Object



31
32
33
# File 'lib/bloomberg_currency/api/parser.rb', line 31

def parse_tr_ytd(tr_ytd_str)
  tr_ytd_str.delete("%").tr("–—−", "-").to_f
end