Module: Mspire::Mzml::Component

Extended by:
List
Includes:
CV::Paramable
Defined in:
lib/mspire/mzml/component.rb

Instance Attribute Summary collapse

Attributes included from CV::Paramable

#params

Instance Method Summary collapse

Methods included from List

list_xml, list_xml_element

Methods included from CV::Paramable

#describe!, #describe_many!, #find_param_by_accession, #find_param_value_by_accession, #initialize, #param_exists_by_accession?

Instance Attribute Details

#orderObject

Returns the value of attribute order.



9
10
11
# File 'lib/mspire/mzml/component.rb', line 9

def order
  @order
end

Instance Method Details

#to_xml(builder) ⇒ Object



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

def to_xml(builder)
  builder.component(order: @order) do |c_n|
    super(c_n)
  end
  builder
end