Sha256: b29e4c383f276cb61c09ff151c7a0011e046a50ba2c60dada027f1b78a1aa528

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

module Ieee
  module Idams
    # Product number
    class ProductNumber < Lutaml::Model::Serializable
      # <productnumber pubtype="Online">STDWD94477</productnumber>

      attribute :pubtype, :string
      attribute :value, :string

      xml do
        root "productnumber"
        map_attribute "pubtype", to: :pubtype
        map_content to: :value
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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