module Mspire::Mzml::DataArrayContainerLike
Attributes
data_arrays[RW]
(optional) an array of Mspire::Mzml::DataArray
data_processing[RW]
(optional) an Mspire::Mzml::DataProcessing
object
id[RW]
(required) the spectrum id matching this general pattern: S+=S+( S+=S+)*)
index[RW]
(required [at xml write time]) the index in the spectrum list
Public Instance Methods
data_array_xml_atts()
click to toggle source
returns a hash with id, index, defaultArrayLength
# File lib/mspire/mzml/data_array_container_like.rb, line 42 def data_array_xml_atts {index: @index, id: @id, defaultArrayLength: default_array_length} end
default_array_length()
click to toggle source
# File lib/mspire/mzml/data_array_container_like.rb, line 29 def default_array_length if @data_arrays if @data_arrays.first @data_arrays.first.size else 0 end else 0 end end