Sha256: e4a35b2f6fd5d8ad380ce91b85cc9a010814b14c1652663fadc282da849cdcc6

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

module Ieee
  module Idams
    # Represents an article abstract
    class ArticleAbstract < Lutaml::Model::Serializable
      # Abstract type
      # @return [String] type of abstract
      attribute :abstract_type, :string

      # Abstract value
      # @return [String] abstract text
      attribute :value, :string

      xml do
        root "abstract"
        map_attribute "abstracttype", to: :abstract_type
        map_content to: :value, cdata: true
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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