Sha256: 76e10ffbb0fa33e7487d673ce35c84c9f5ec8e8261ab50ae27a9d1722027a524

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class FundingGroup < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :specific_use, :string
      attribute :lang, :string
      attribute :award_group, AwardGroup, collection: true
      attribute :funding_statement, FundingStatement, collection: true
      attribute :open_access, OpenAccess, collection: true

      xml do
        root "funding-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 "award-group", to: :award_group
        map_element "funding-statement", to: :funding_statement
        map_element "open-access", to: :open_access
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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