Sha256: 18f125b4aa35321a7cc4954cd3ab133cd6700c68305f94b87f5ba798eec221bf

Contents?: true

Size: 593 Bytes

Versions: 11

Compression:

Stored size: 593 Bytes

Contents


module MS
  class Mzml
    class ChromatogramList < Array

      # a DataProcessing object
      attr_reader :default_data_processing

      def initialize(default_data_processing, chromatograms=[])
        @default_data_processing = default_data_processing
        super(chromatograms)
      end

      def to_xml(builder)
        builder.chromatogramList(count: self.size, defaultDataProcessingRef: @default_data_processing.id) do |chrl_n|
          self.each do |chromatogram|
            chromatogram.to_xml(chrl_n)
          end
        end
        builder
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mspire-0.6.26 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.25 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.24 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.22 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.21 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.20 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.19 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.18 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.12 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.11 lib/ms/mzml/chromatogram_list.rb
mspire-0.6.9 lib/ms/mzml/chromatogram_list.rb