Sha256: 2501e74563a0e70f03326f90912b31008dd1a799b67d91e4bcfd8a6fc2480380
Contents?: true
Size: 683 Bytes
Versions: 32
Compression:
Stored size: 683 Bytes
Contents
module NetSuite module Records class CustomerPaymentApplyList include Support::Fields include Namespaces::TranCust fields :apply def initialize(attributes = {}) initialize_from_attributes_hash(attributes) end def apply=(applies) case applies when Hash self.applies << CustomerPaymentApply.new(applies) when Array applies.each { |apply| self.applies << CustomerPaymentApply.new(apply) } end end def applies @applies ||= [] end def to_record { "#{record_namespace}:apply" => applies.map(&:to_record) } end end end end
Version data entries
32 entries across 32 versions & 1 rubygems