Class: Mspire::Mzml::ScanSettings
- Inherits:
-
Object
- Object
- Mspire::Mzml::ScanSettings
- Extended by:
- List
- Includes:
- CV::Paramable
- Defined in:
- lib/mspire/mzml/scan_settings.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Attributes included from CV::Paramable
#cv_params, #ref_param_groups, #user_params
Instance Method Summary collapse
-
#initialize(id, opts = {params: []}, &block) ⇒ ScanSettings
constructor
A new instance of ScanSettings.
- #to_xml(builder) ⇒ Object
Methods included from List
Methods included from CV::Paramable
#accessionable_params, #describe!, #describe_many!, #fetch, #fetch_by_accession, #param?, #param_by_accession, #params, #params?
Constructor Details
#initialize(id, opts = {params: []}, &block) ⇒ ScanSettings
Returns a new instance of ScanSettings.
11 12 13 14 15 |
# File 'lib/mspire/mzml/scan_settings.rb', line 11 def initialize(id, opts={params: []}, &block) @id = id super(opts) block.call(self) if block end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/mspire/mzml/scan_settings.rb', line 9 def id @id end |
Instance Method Details
#to_xml(builder) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/mspire/mzml/scan_settings.rb', line 17 def to_xml(builder) builder.scanSettings( id: @id ) do |ss_n| super(ss_n) end builder end |