Sha256: b83ad57c85c68b41785c2d74bfceafda2a3519817c1ba6eb7f7a0a0d806ea819

Contents?: true

Size: 559 Bytes

Versions: 6

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

require_relative "keyword"

module Ieee
  module Idams
    # Represents a set of keywords
    class KeywordSet < Lutaml::Model::Serializable
      # Keyword type
      # @return [String] type of keywords
      attribute :keywordtype, :string

      # List of keywords
      # @return [Array<Keyword>] keywords
      attribute :keyword, Keyword, collection: true

      xml do
        root "keywordset"
        map_attribute "keywordtype", to: :keywordtype
        map_element "keyword", to: :keyword
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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