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) {|_self| ... } ⇒ ScanSettings
constructor
A new instance of ScanSettings.
- #to_xml(builder) ⇒ Object
Methods included from List
Methods included from CV::Paramable
#accessionable_params, #describe!, #describe_from_xml!, #describe_many!, #describe_self_from_xml!, #each_accessionable_param, #each_param, #fetch, #fetch_by_accession, #param?, #param_by_accession, #params, #params?, #reject!, #replace!, #replace_many!
Constructor Details
#initialize(id) {|_self| ... } ⇒ ScanSettings
Returns a new instance of ScanSettings.
12 13 14 15 16 |
# File 'lib/mspire/mzml/scan_settings.rb', line 12 def initialize(id) @id = id params_init yield(self) if block_given? end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/mspire/mzml/scan_settings.rb', line 10 def id @id end |
Instance Method Details
#to_xml(builder) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/mspire/mzml/scan_settings.rb', line 18 def to_xml(builder) builder.scanSettings( id: @id ) do |ss_n| super(ss_n) end builder end |