Class: Deserializer::Attribute::NestedAssociation

Inherits:
Association show all
Defined in:
lib/deserializer/attribute/nested_association.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Deserializer::Attribute::Base

Instance Method Details

#to_hash(params) ⇒ Object



5
6
7
# File 'lib/deserializer/attribute/nested_association.rb', line 5

def to_hash( params )
  { name => deserializer.from_params( params ) }
end