Sha256: fc441cb68250ae4c435c9b22ff56ee418cb1390892118a499cbf47d99fde84a9

Contents?: true

Size: 979 Bytes

Versions: 1

Compression:

Stored size: 979 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class ContributedResourceGroup < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :resource_type, :string
      attribute :specific_use, :string
      attribute :lang, :string
      attribute :award_group, AwardGroup, collection: true
      attribute :support_description, SupportDescription, collection: true
      attribute :resource_group, ResourceGroup, collection: true

      xml do
        root "contributed-resource-group"

        map_attribute "id", to: :id
        map_attribute "resource-type", to: :resource_type
        map_attribute "specific-use", to: :specific_use
        map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
        map_element "award-group", to: :award_group
        map_element "support-description", to: :support_description
        map_element "resource-group", to: :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/contributed_resource_group.rb