Sha256: 998a1e20a2ebf68eebb6226656d8b48a1e8dab042a743b84ddd993d41abdc22c

Contents?: true

Size: 597 Bytes

Versions: 14

Compression:

Stored size: 597 Bytes

Contents


module Mspire
  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

14 entries across 14 versions & 1 rubygems

Version Path
mspire-0.7.18 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.17 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.13 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.12 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.11 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.10 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.9 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.8 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.7 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.6 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.5 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.4 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.3 lib/mspire/mzml/chromatogram_list.rb
mspire-0.7.2 lib/mspire/mzml/chromatogram_list.rb