Class: Mspire::Mzml::ScanWindow

Inherits:
Object
  • Object
show all
Includes:
CV::Paramable
Defined in:
lib/mspire/mzml/scan_window.rb

Overview

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"

Instance Attribute Summary

Attributes included from CV::Paramable

#cv_params, #ref_param_groups, #user_params

Class Method Summary collapse

Methods included from CV::Paramable

#accessionable_params, #describe!, #describe_many!, #fetch, #fetch_by_accession, #initialize, #param?, #param_by_accession, #params, #params?, #to_xml

Class Method Details

.from_xml(xml) ⇒ Object



12
13
14
15
16
# File 'lib/mspire/mzml/scan_window.rb', line 12

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