Sha256: a62d55bb049eda40f55061859fe69adb1a1d11092b09c67c9809d7c218e3544b

Contents?: true

Size: 534 Bytes

Versions: 11

Compression:

Stored size: 534 Bytes

Contents

require 'ms/cv/paramable'

module MS
  class Mzml
    class ProcessingMethod
      include MS::CV::Paramable

      attr_accessor :order, :software

      def initialize(order, software, opts={params: []}, &block)
        @order, @software = order, software
        describe!(*opts[:params])
        block.call(self) if block
      end

      def to_xml(builder)
        builder.processingMethod(order: @order, softwareRef: software.id) do |pm_n|
          super(pm_n) # params
        end
        builder
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mspire-0.6.26 lib/ms/mzml/processing_method.rb
mspire-0.6.25 lib/ms/mzml/processing_method.rb
mspire-0.6.24 lib/ms/mzml/processing_method.rb
mspire-0.6.22 lib/ms/mzml/processing_method.rb
mspire-0.6.21 lib/ms/mzml/processing_method.rb
mspire-0.6.20 lib/ms/mzml/processing_method.rb
mspire-0.6.19 lib/ms/mzml/processing_method.rb
mspire-0.6.18 lib/ms/mzml/processing_method.rb
mspire-0.6.12 lib/ms/mzml/processing_method.rb
mspire-0.6.11 lib/ms/mzml/processing_method.rb
mspire-0.6.9 lib/ms/mzml/processing_method.rb