Class: Mspire::Mzml::ScanSettings

Inherits:
Object
  • Object
show all
Extended by:
List
Includes:
Paramable
Defined in:
lib/mspire/mzml/scan_settings.rb

Instance Attribute Summary collapse

Attributes included from Paramable

#cv_params, #ref_param_groups, #user_params

Instance Method Summary collapse

Methods included from List

list_xml, list_xml_element

Methods included from 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.

Yields:

  • (_self)

Yield Parameters:



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

#idObject

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