Class: Deserializer::Attribute::HasManyAssociation

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

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_hash

Constructor Details

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

Instance Method Details

#value(params) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/deserializer/attribute/has_many_association.rb', line 5

def value( params )
  target = []
  params[key].each do |association_datum|
    target << deserializer.from_params( association_datum )
  end
  target
end