Sha256: 48a975b33de1634ce002f6c3e51d92ce2c71569e4685905edfdf27b6a77dc920

Contents?: true

Size: 804 Bytes

Versions: 1

Compression:

Stored size: 804 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class SupportGroup < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :specific_use, :string
      attribute :lang, :string
      attribute :funding_group, FundingGroup, collection: true
      attribute :contributed_resource_group, ContributedResourceGroup,
                collection: true

      xml do
        root "support-group"

        map_attribute "id", to: :id
        map_attribute "specific-use", to: :specific_use
        map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
        map_element "funding-group", to: :funding_group
        map_element "contributed-resource-group",
                    to: :contributed_resource_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/support_group.rb