# typed: true # frozen_string_literal: true module EML module UK module Models module TNS class Message < ::EML::Model extend T::Sig fields("Transactions" => :transactions) sig { params(raw_values: T::Hash[String, T.untyped]).void } def initialize(raw_values) raw_transactions = raw_values.fetch("Transactions", []) @transactions = raw_transactions. each_with_object([]) do |raw_transaction, transactions| transactions << EML::UK::Models::TNS::Transaction. new(raw_transaction) end end end end end end end