Sha256: e3f567561d7e06f8bee8de195640fb3154e507a9ab70be407e29625278a5a91b
Contents?: true
Size: 383 Bytes
Versions: 13
Compression:
Stored size: 383 Bytes
Contents
class <%= @deserializer_class.capitalize %>Deserializer def self.parse(params) <% @deserializer_properties.each do |attribute| -%> <%= attribute %> = params.dig(:payload, :<%= attribute %>) <% end -%> { <%= @deserializer_class %>: { <% @deserializer_properties.each do |attribute| -%> <%= attribute %>: <%= attribute %>, <% end -%> }.compact } end end
Version data entries
13 entries across 13 versions & 1 rubygems