Sha256: ff10c785d6186bde9c0e654d40e531aa59ad2e14d30f4ffa904977bde032c1a7
Contents?: true
Size: 680 Bytes
Versions: 7
Compression:
Stored size: 680 Bytes
Contents
module NetSuite module Records class DepositPaymentList include Support::Fields include Namespaces::TranBank fields :deposit_payment def initialize(attributes = {}) initialize_from_attributes_hash(attributes) end def payment=(payments) case payments when Hash self.payments << DepositPayment.new(payments) when Array payments.each { |p| self.payments << DepositPayment.new(p) } end end def payments @payments ||= [] end def to_record { "#{record_namespace}:depositPayment" => payments.map(&:to_record) } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems