Class: Hash
Instance Method Summary collapse
- #convert_from_request ⇒ Object
- #except_nested(key) ⇒ Object
- #except_nested!(key) ⇒ Object
- #to_request_params ⇒ Object
Instance Method Details
#convert_from_request ⇒ Object
74 75 76 77 78 |
# File 'lib/justa/util.rb', line 74 def convert_from_request Hash[map do |k, v| [k.to_s.to_snake, v] end] end |
#except_nested(key) ⇒ Object
55 56 57 58 |
# File 'lib/justa/util.rb', line 55 def except_nested(key) r = Marshal.load(Marshal.dump(self)) r.except_nested!(key) end |