Sha256: 7fe854b586487e214aa980313b18906f1988eba133d3d964feda017bddfe490a
Contents?: true
Size: 580 Bytes
Versions: 36
Compression:
Stored size: 580 Bytes
Contents
module NetSuite module Records class CreditMemoApplyList include Namespaces::TranCust def initialize(attributes = {}) case attributes[:apply] when Hash applies << CreditMemoApply.new(attributes[:apply]) when Array attributes[:apply].each { |apply| applies << CreditMemoApply.new(apply) } end end def applies @applies ||= [] end def to_record applies.map do |apply| { "#{record_namespace}:apply" => apply.to_record } end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems