Sha256: 0d9ec78e48e8d38e4bc68a826d5f83d50f6fe53b2f6000be0f8f35a8a3eedb7e

Contents?: true

Size: 892 Bytes

Versions: 6

Compression:

Stored size: 892 Bytes

Contents

# frozen_string_literal: true

require_relative "volume_info_issue"
require_relative "volume_note_group"

module Ieee
  module Idams
    # Contains volume metadata
    class VolumeInfo < Lutaml::Model::Serializable
      # Publication year
      # @return [Integer] year of publication
      attribute :year, :integer

      # System ID
      # @return [String] IDAMS internal ID
      attribute :idamsid, :string

      # Note group
      # @return [VolumeNoteGroup] group of notes
      attribute :note_group, VolumeNoteGroup

      # Issue information
      # @return [VolumeInfoIssue] detailed issue metadata
      attribute :issue, VolumeInfoIssue

      xml do
        root "volumeinfo"
        map_element "year", to: :year
        map_element "idamsid", to: :idamsid
        map_element "notegroup", to: :note_group
        map_element "issue", to: :issue
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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