Sha256: b00948f9cec072fde6de561509661f7e7e4ba2265de8a2f60fbafe51396d7b1a

Contents?: true

Size: 868 Bytes

Versions: 6

Compression:

Stored size: 868 Bytes

Contents

# frozen_string_literal: true

require_relative "affiliation_address"

module Ieee
  module Idams
    # Represents an institutional affiliation
    class Affiliation < Lutaml::Model::Serializable
      # AMS ID
      # @return [Integer] author's AMS ID
      attribute :amsid, :integer

      # Organization name
      # @return [String] institution name
      attribute :orgname, :string

      # Organization division
      # @return [String] department or division
      attribute :orgdiv, :string

      # Address information
      # @return [Address] institutional address
      attribute :address, AffiliationAddress

      xml do
        root "affn"
        map_element "amsid", to: :amsid
        map_element "orgname", to: :orgname, cdata: true
        map_element "orgdiv", to: :orgdiv
        map_element "address", to: :address
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ieee-idams-0.2.11 lib/ieee/idams/affiliation.rb
ieee-idams-0.2.10 lib/ieee/idams/affiliation.rb
ieee-idams-0.2.9 lib/ieee/idams/affiliation.rb
ieee-idams-0.2.8 lib/ieee/idams/affiliation.rb
ieee-idams-0.2.7 lib/ieee/idams/affiliation.rb
ieee-idams-0.2.6 lib/ieee/idams/affiliation.rb