Class: Cryptoexchange::Exchanges::Koinex::Services::GetSymbol

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptoexchange/exchanges/koinex/services/get_symbol.rb

Class Method Summary collapse

Class Method Details

.get_symbol(target_raw) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/cryptoexchange/exchanges/koinex/services/get_symbol.rb', line 5

def self.get_symbol(target_raw)
  if target_raw == 'bitcoin'
    target = 'BTC'
  elsif target_raw == 'ether'
    target = 'ETH'
  elsif target_raw == 'ripple'
    target = 'XRP'
  elsif target_raw == 'inr'
    target = target_raw.upcase
  end
  target
end