Class: LedgerSync::Util::ResourceConverter::Type::ReferencesManyType
- Inherits:
-
ResourceConverterType
- Object
- ActiveModel::Type::Value
- Type::Value
- ResourceConverterType
- LedgerSync::Util::ResourceConverter::Type::ReferencesManyType
- Defined in:
- lib/ledger_sync/util/resource_converter/type/references_many_type.rb
Instance Attribute Summary
Attributes inherited from ResourceConverterType
Instance Method Summary collapse
Methods inherited from ResourceConverterType
Methods included from Type::ValueMixin
#assert_valid, #cast, included, #valid?
Constructor Details
This class inherits a constructor from LedgerSync::Util::ResourceConverter::Type::ResourceConverterType
Instance Method Details
#cast_value(args = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ledger_sync/util/resource_converter/type/references_many_type.rb', line 10 def cast_value(args = {}) destination = args.fetch(:destination) values = args.fetch(:value) return if values.nil? values.map do |value| super( destination: destination, value: value ) end end |