Class: Mirror::Api::RequestData
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Mirror::Api::RequestData
- Defined in:
- lib/mirror-api/request_data.rb
Instance Method Summary collapse
-
#convert_key(key) ⇒ Object
:nodoc:.
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 |