princelab/mspire

View on GitHub
lib/mspire/mzml/isolation_window.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'mspire/paramable'

module Mspire
  class Mzml

    # MUST supply a *child* term of MS:1000792 (isolation window attribute) one or more times
    #
    #     e.g.: MS:1000827 (isolation window target m/z)
    #     e.g.: MS:1000828 (isolation window lower offset)
    #     e.g.: MS:1000829 (isolation window upper offset)
    #
    # MUST supply a *child* term of MS:1000792 (isolation window attribute) one or more times
    #
    #     e.g.: MS:1000827 (isolation window target m/z)
    #     e.g.: MS:1000828 (isolation window lower offset)
    #     e.g.: MS:1000829 (isolation window upper offset)
    class IsolationWindow
      include Mspire::Paramable

      def to_xml(builder)
        builder.isolationWindow {|xml| super(xml) }
      end
    end
  end
end