Sha256: 59e79305d229a33052ceb5bd3b0eb5f4af32caa811650da9d89afd9e5b343bfb

Contents?: true

Size: 787 Bytes

Versions: 1

Compression:

Stored size: 787 Bytes

Contents

require "lutaml/model"

module Reqif
  class DatatypeDefinitionEnumeration < Lutaml::Model::Serializable
    attribute :desc, :string
    attribute :identifier, :string
    attribute :last_change, :time
    attribute :long_name, :string
    attribute :alternative_id, AlternativeId
    attribute :specified_values, SpecifiedValues

    xml do
      root "DATATYPE-DEFINITION-ENUMERATION"
      namespace "http://www.omg.org/spec/ReqIF/20110401/reqif.xsd", "REQIF"

      map_attribute "DESC", to: :desc
      map_attribute "IDENTIFIER", to: :identifier
      map_attribute "LAST-CHANGE", to: :last_change
      map_attribute "LONG-NAME", to: :long_name
      map_element "ALTERNATIVE-ID", to: :alternative_id
      map_element "SPECIFIED-VALUES", to: :specified_values
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reqif-0.1.0 lib/reqif/datatype_definition_enumeration.rb