Module: ParamsReady::Marshaller::StructMarshallers::AbstractMarshaller
- Included in:
- StructMarshaller
- Defined in:
- lib/params_ready/marshaller/struct_marshallers.rb
Instance Method Summary collapse
Instance Method Details
#extract_bare_value(parameter, intent) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/params_ready/marshaller/struct_marshallers.rb', line 9 def (parameter, intent) parameter.names.keys.reduce({}) do |result, name| c = parameter[name] hash = c.to_hash_if_eligible(intent) if hash.nil? result else result.deep_merge(hash) end end end |