Sha256: b151238bffda05f7ad0c72dd96f09c3aac067d9ce9eee9d871e89fd8cb872d9e

Contents?: true

Size: 887 Bytes

Versions: 1

Compression:

Stored size: 887 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class BlockAlternatives < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :object_id, ObjectId, collection: true
      attribute :boxed_text, BoxedText, collection: true
      attribute :fig, Fig, collection: true
      attribute :fig_group, FigGroup, collection: true
      attribute :table_wrap, TableWrap, collection: true
      attribute :table_wrap_group, TableWrapGroup, collection: true

      xml do
        root "block-alternatives"

        map_attribute "id", to: :id
        map_element "object-id", to: :object_id
        map_element "boxed-text", to: :boxed_text
        map_element "fig", to: :fig
        map_element "fig-group", to: :fig_group
        map_element "table-wrap", to: :table_wrap
        map_element "table-wrap-group", to: :table_wrap_group
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
niso-jats-0.1.1 lib/niso/jats/block_alternatives.rb