class Mspire::Mzml::Product
The method of product ion selection and activation in a precursor ion scan
this object is NOT paramable, it just contains a single IsolationWindow
Attributes
isolation_window[RW]
Public Class Methods
from_xml(xml, ref_hash)
click to toggle source
# File lib/mspire/mzml/product.rb, line 24 def self.from_xml(xml, ref_hash) isolation_window_n = xml.child if isolation_window_n iw = Mspire::Mzml::IsolationWindow.from_xml(isolation_window_n, ref_hash) end self.new(iw) end
new(isolation_window=nil)
click to toggle source
# File lib/mspire/mzml/product.rb, line 14 def initialize(isolation_window=nil) @isolation_window = isolation_window end
Public Instance Methods
to_xml(builder)
click to toggle source
# File lib/mspire/mzml/product.rb, line 18 def to_xml(builder) builder.product do |p_n| @isolation_window.to_xml(p_n) if @isolation_window end end