Sha256: 0734c2aa8cf201bae4aba6d6a36943fd0099f8907ff9d45736810c094227b90a

Contents?: true

Size: 582 Bytes

Versions: 9

Compression:

Stored size: 582 Bytes

Contents

require 'mspire'
require 'mspire/mzml/list'
require 'mspire/cv/paramable'

module Mspire
  class Mzml
    class Software
      include Mspire::CV::Paramable

      attr_accessor :id, :version

      def initialize(id='mspire', version=Mspire::VERSION, opts={params: []}, &block)
        @id, @version = id, version
        super(opts)
        block.call(self) if block
      end

      def to_xml(builder)
        builder.software( id: @id, version: @version) do |sf_n|
          super(sf_n)
        end
        builder
      end

      extend(Mspire::Mzml::List)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mspire-0.7.18 lib/mspire/mzml/software.rb
mspire-0.7.17 lib/mspire/mzml/software.rb
mspire-0.7.13 lib/mspire/mzml/software.rb
mspire-0.7.12 lib/mspire/mzml/software.rb
mspire-0.7.11 lib/mspire/mzml/software.rb
mspire-0.7.10 lib/mspire/mzml/software.rb
mspire-0.7.9 lib/mspire/mzml/software.rb
mspire-0.7.8 lib/mspire/mzml/software.rb
mspire-0.7.7 lib/mspire/mzml/software.rb