Sha256: d6a1affc77874b7cfa6c7e7a68a7e38f3f117357040e42c5b4a3a2686442aed0

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 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
        describe!(*opts[:params])
        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

4 entries across 4 versions & 1 rubygems

Version Path
mspire-0.7.5 lib/mspire/mzml/software.rb
mspire-0.7.4 lib/mspire/mzml/software.rb
mspire-0.7.3 lib/mspire/mzml/software.rb
mspire-0.7.2 lib/mspire/mzml/software.rb