Module: Remit::ConvertKey

Included in:
InboundRequest, Request
Defined in:
lib/remit/common.rb

Instance Method Summary collapse

Instance Method Details

#convert_key(key) ⇒ Object



11
12
13
# File 'lib/remit/common.rb', line 11

def convert_key(key)
  key.to_s.gsub(/(^|_)(.)/) { $2.upcase }.to_sym
end