Sha256: 2b0c765443ef7e423beb11aea03f2cfe8411dd77c41703fe0bf83fec4f1f40ab

Contents?: true

Size: 866 Bytes

Versions: 2

Compression:

Stored size: 866 Bytes

Contents

module Oasis
  module Etm
    class Colspec < Lutaml::Model::Serializable
      # Optional attributes
      attribute :colnum, :integer
      attribute :colname, :string
      attribute :colwidth, :string
      attribute :colsep, :integer, values: [0, 1]
      attribute :rowsep, :integer, values: [0, 1]
      attribute :align, :string, values: %w[left right center justify char]
      attribute :char, :string
      attribute :charoff, :string

      xml do
        root "colspec"

        map_attribute "colnum", to: :colnum
        map_attribute "colname", to: :colname
        map_attribute "colwidth", to: :colwidth
        map_attribute "colsep", to: :colsep
        map_attribute "rowsep", to: :rowsep
        map_attribute "align", to: :align
        map_attribute "char", to: :char
        map_attribute "charoff", to: :charoff
      end
    end
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
oasis-etm-0.1.0 lib/oasis/etm/colspec.rb
oasis-etm-0.1.0 lib/oasis/etm/tcol.rb