Class: LedgerSync::Serialization::Type::ReferencesManyType

Inherits:
SerializerType show all
Defined in:
lib/ledger_sync/serialization/type/references_many_type.rb

Instance Attribute Summary

Attributes inherited from SerializerType

#serializer

Instance Method Summary collapse

Methods inherited from SerializerType

#initialize

Constructor Details

This class inherits a constructor from LedgerSync::Serialization::Type::SerializerType

Instance Method Details

#convert(args = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/ledger_sync/serialization/type/references_many_type.rb', line 9

def convert(args = {})
  value = args.fetch(:value)

  value.map do |one_value|
    super(value: one_value)
  end
end