Sha256: 622ca8591cd5427cf1025e9c326e289add45a622428ca84843cf57d5a3b880b0

Contents?: true

Size: 585 Bytes

Versions: 2

Compression:

Stored size: 585 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 [Article] articles in volume
      attribute :article, Article

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ieee-idams-0.2.11 lib/ieee/idams/volume.rb
ieee-idams-0.2.10 lib/ieee/idams/volume.rb