Sha256: 4164348998377721fd075a6148ab4a57417807ffb4d4e484be2c3ffc49d41cb9

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

require_relative "entry"

module Oasis
  module Etm
    class Row < Lutaml::Model::Serializable
      # Optional attributes
      attribute :rowsep, :integer, values: [0, 1]
      attribute :valign, :string, values: %w[top middle bottom]

      # Content
      attribute :entries, Entry, collection: true

      xml do
        root "row"

        map_attribute "rowsep", to: :rowsep
        map_attribute "valign", to: :valign
        map_element "entry", to: :entries
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oasis-etm-0.1.0 lib/oasis/etm/row.rb