Sha256: f1fe122e726d7979f6801fafba103d9d86fe2664bc7f6c72e1d68318a11c3696

Contents?: true

Size: 952 Bytes

Versions: 4

Compression:

Stored size: 952 Bytes

Contents

# frozen_string_literal: true

module Ieee
  module Idams
    # Represents
    class StandardRelationship < Lutaml::Model::Serializable
      # Product number
      # @return [String] product number code
      # @example "123456"
      attribute :prodnum, :string

      # Relationship date
      # @return [String] relationship date
      # @example "12/31/1969 7:00:00 PM"
      attribute :relationship_date, :string

      # Standard relationship type
      # @return [String] standard relationship type
      # @example "F"
      attribute :type, :string

      # Date string
      # @return [String] date string
      # @example "9-12-1997"
      attribute :date_string, :string

      xml do
        root "standard_relationship"
        map_attribute "prodnum", to: :prodnum
        map_attribute "relationship_date", to: :relationship_date
        map_attribute "type", to: :type
        map_content to: :date_string
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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