Sha256: 1cc8a02c6812abbf7a7e04391af0a9ee94755bdf07021558a7e762e727e5db92

Contents?: true

Size: 557 Bytes

Versions: 25

Compression:

Stored size: 557 Bytes

Contents

module NetSuite
  module Records
    class RecordRefList < Support::Sublist
      include Support::Records
      include Namespaces::PlatformCore

      sublist :record_ref, RecordRef

      def to_record
        {
          "#{record_namespace}:recordRef" => record_ref.map do |rr|
            rec = rr.to_record
            rec[:@internalId] = rr.internal_id if rr.internal_id
            rec[:@externalId] = rr.external_id if rr.external_id
            rec[:@type] = rr.type if rr.type
            rec
          end
        }
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/record_ref_list.rb
netsuite-0.9.2 lib/netsuite/records/record_ref_list.rb
netsuite-0.9.1 lib/netsuite/records/record_ref_list.rb
netsuite-0.9.0 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.12 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.11 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.10 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.9 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.8 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.7 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.6 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.5 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.4 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.3 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.2 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.1 lib/netsuite/records/record_ref_list.rb
netsuite-0.8.0 lib/netsuite/records/record_ref_list.rb
netsuite-0.7.9 lib/netsuite/records/record_ref_list.rb
netsuite-0.7.8 lib/netsuite/records/record_ref_list.rb
netsuite-0.7.7 lib/netsuite/records/record_ref_list.rb