Sha256: e8fe67b6b8aa092b16b67e455368a33f0fb2af394e0a29571d592c088ce18ec6

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true

require_relative "volume_info"
require_relative "article"

module Ieee
  module Idams
    # Represents a volume containing articles
    class Volume < Lutaml::Model::Serializable
      # Volume information
      # @return [VolumeInfo] volume metadata
      attribute :volumeinfo, VolumeInfo

      # List of articles
      # @return [Array<Article>] articles in volume
      attribute :article, Article, collection: true

      xml do
        root "volume"
        map_element "volumeinfo", to: :volumeinfo
        map_element "article", to: :article
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ieee-idams-0.2.9 lib/ieee/idams/volume.rb
ieee-idams-0.2.8 lib/ieee/idams/volume.rb
ieee-idams-0.2.7 lib/ieee/idams/volume.rb
ieee-idams-0.2.6 lib/ieee/idams/volume.rb