Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/collection_json_serializer/core_ext/hash.rb
Instance Method Summary collapse
Instance Method Details
#extract_params ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/collection_json_serializer/core_ext/hash.rb', line 2 def extract_params params = {} params[:name] = keys.first params[:properties] = self[keys.first] params end |