Class: MzML::Spectrum

Inherits:
Object
  • Object
show all
Defined in:
lib/mzml/spectrum.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Spectrum

Returns a new instance of Spectrum.



12
13
14
15
16
17
# File 'lib/mzml/spectrum.rb', line 12

def initialize(node)
  @node = node
  @params = {}
  @precursor_list = []
  parse_element()
end

Instance Attribute Details

#base_peak_intensityObject (readonly)

Returns the value of attribute base_peak_intensity.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def base_peak_intensity
  @base_peak_intensity
end

#base_peak_mzObject (readonly)

Returns the value of attribute base_peak_mz.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def base_peak_mz
  @base_peak_mz
end

#default_array_lengthObject (readonly)

Returns the value of attribute default_array_length.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def default_array_length
  @default_array_length
end

#high_mzObject (readonly)

Returns the value of attribute high_mz.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def high_mz
  @high_mz
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def id
  @id
end

#intensityObject (readonly)

Returns the value of attribute intensity.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def intensity
  @intensity
end

#intensity_nodeObject (readonly)

Returns the value of attribute intensity_node.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def intensity_node
  @intensity_node
end

#low_mzObject (readonly)

Returns the value of attribute low_mz.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def low_mz
  @low_mz
end

#ms_levelObject (readonly)

Returns the value of attribute ms_level.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def ms_level
  @ms_level
end

#mzObject (readonly)

Returns the value of attribute mz.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def mz
  @mz
end

#mz_nodeObject (readonly)

Returns the value of attribute mz_node.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def mz_node
  @mz_node
end

#nodeObject (readonly)

Returns the value of attribute node.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def node
  @node
end

#paramsObject (readonly)

Returns the value of attribute params.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def params
  @params
end

#polarityObject (readonly)

Returns the value of attribute polarity.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def polarity
  @polarity
end

#precursorObject (readonly)

Returns the value of attribute precursor.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def precursor
  @precursor
end

#precursor_intensityObject (readonly)

Returns the value of attribute precursor_intensity.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def precursor_intensity
  @precursor_intensity
end

#precursor_listObject (readonly)

Returns the value of attribute precursor_list.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def precursor_list
  @precursor_list
end

#precursor_massObject (readonly)

Returns the value of attribute precursor_mass.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def precursor_mass
  @precursor_mass
end

#representationObject (readonly)

Returns the value of attribute representation.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def representation
  @representation
end

#retention_timeObject (readonly)

Returns the value of attribute retention_time.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def retention_time
  @retention_time
end

#retention_time_unitObject (readonly)

Returns the value of attribute retention_time_unit.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def retention_time_unit
  @retention_time_unit
end

#scan_listObject (readonly)

Returns the value of attribute scan_list.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def scan_list
  @scan_list
end

#ticObject (readonly)

Returns the value of attribute tic.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def tic
  @tic
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/mzml/spectrum.rb', line 6

def type
  @type
end