class Mspire::Mzml::Software
Attributes
id[RW]
version[RW]
Public Class Methods
from_xml(xml, link)
click to toggle source
# File lib/mspire/mzml/software.rb, line 26 def self.from_xml(xml, link) obj = self.new(xml[:id], xml[:version]) obj.describe_self_from_xml!(xml, link[:ref_hash]) end
new(id="mspire_ { |self| ... }
click to toggle source
# File lib/mspire/mzml/software.rb, line 13 def initialize(id="mspire_#{Mspire::VERSION}", version=Mspire::VERSION) @id, @version = id, version params_init yield(self) if block_given? end
Public Instance Methods
to_xml(builder)
click to toggle source
Calls superclass method
Mspire::Paramable#to_xml
# File lib/mspire/mzml/software.rb, line 19 def to_xml(builder) builder.software( id: @id, version: @version) do |sf_n| super(sf_n) end builder end