Method: Binance::Client::REST#camelize

Defined in:
lib/binance/client/rest.rb

#camelize(str) ⇒ Object



40
41
42
43
# File 'lib/binance/client/rest.rb', line 40

def camelize(str)
  str.split('_')
     .map.with_index { |word, i| i.zero? ? word : word.capitalize }.join
end