Class: Mirror::Api::RequestData

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/mirror-api/request_data.rb

Instance Method Summary collapse

Instance Method Details

#convert_key(key) ⇒ Object

:nodoc:



6
7
8
# File 'lib/mirror-api/request_data.rb', line 6

def convert_key(key) #:nodoc:
  key.to_s.split('_').inject([]){ |buffer,e| buffer.push(buffer.empty? ? e : e.capitalize) }.join
end