Class: Mspire::Mzml::Chromatogram
- Inherits:
-
Object
- Object
- Mspire::Mzml::Chromatogram
- Includes:
- DataArrayContainerLike
- Defined in:
- lib/mspire/mzml/chromatogram.rb
Instance Attribute Summary collapse
-
#precursor ⇒ Object
(optional) precursor isolations to the chromatogram currently being described.
-
#product ⇒ Object
(optional) Description of product isolation to the chromatogram.
Attributes included from DataArrayContainerLike
#data_arrays, #data_processing, #id, #index
Attributes included from CV::Paramable
#cv_params, #ref_param_groups, #user_params
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Chromatogram
constructor
A new instance of Chromatogram.
-
#to_xml(builder, opts = {}) ⇒ Object
see SpectrumList for generating the entire list.
Methods included from DataArrayContainerLike
Methods included from CV::Paramable
#accessionable_params, #describe!, #describe_many!, #fetch, #fetch_by_accession, #param?, #param_by_accession, #params, #params?
Constructor Details
#initialize(*args, &block) ⇒ Chromatogram
Returns a new instance of Chromatogram.
15 16 17 18 |
# File 'lib/mspire/mzml/chromatogram.rb', line 15 def initialize(*args, &block) super(*args) block.call(self) if block end |
Instance Attribute Details
#precursor ⇒ Object
(optional) precursor isolations to the chromatogram currently being described
10 11 12 |
# File 'lib/mspire/mzml/chromatogram.rb', line 10 def precursor @precursor end |
#product ⇒ Object
(optional) Description of product isolation to the chromatogram
13 14 15 |
# File 'lib/mspire/mzml/chromatogram.rb', line 13 def product @product end |
Instance Method Details
#to_xml(builder, opts = {}) ⇒ Object
see SpectrumList for generating the entire list
21 22 23 24 25 26 |
# File 'lib/mspire/mzml/chromatogram.rb', line 21 def to_xml(builder, opts={}) super(builder) do |node| @precursor.to_xml(node) if @precursor @product.to_xml(node) if @product end end |