Sha256: 2fba2063146935d328e288dcb89d79b2977e04c452a8adea843b885aeec9bec9

Contents?: true

Size: 487 Bytes

Versions: 11

Compression:

Stored size: 487 Bytes

Contents

require 'ms/mzml/list'
require 'ms/cv/paramable'

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

      attr_accessor :id

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

      def to_xml(builder)
        builder.scanSettings( id: @id ) do |ss_n|
          super(ss_n)
        end
        builder
      end

      extend(MS::Mzml::List)

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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