Sha256: aaa605e2e527b1d370da785e84475476d81e758d8ca0910cfea6bbc8cccf19ec

Contents?: true

Size: 480 Bytes

Versions: 10

Compression:

Stored size: 480 Bytes

Contents

require 'mspire/cv/paramable'

module Mspire
  class Mzml
    # Typical params might be like:
    #
    #     accession="MS:1000501" name="scan window lower limit" value="400"
    #     accession="MS:1000500" name="scan window upper limit" value="1800"
    class ScanWindow
      include Mspire::CV::Paramable

      def self.from_xml(xml)
        obj = self.new
        [:cvParam, :userParam].each {|v| obj.describe! xml.xpath("./#{v}") }
        obj
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mspire-0.7.18 lib/mspire/mzml/scan_window.rb
mspire-0.7.17 lib/mspire/mzml/scan_window.rb
mspire-0.7.13 lib/mspire/mzml/scan_window.rb
mspire-0.7.12 lib/mspire/mzml/scan_window.rb
mspire-0.7.11 lib/mspire/mzml/scan_window.rb
mspire-0.7.10 lib/mspire/mzml/scan_window.rb
mspire-0.7.9 lib/mspire/mzml/scan_window.rb
mspire-0.7.8 lib/mspire/mzml/scan_window.rb
mspire-0.7.7 lib/mspire/mzml/scan_window.rb
mspire-0.7.6 lib/mspire/mzml/scan_window.rb