Sha256: 954f004b7ddf31634900e5a2ef9bd4a1d42e12b8769c8113aee27a7257857f4a

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 Bytes

Contents

require "lutaml/model"

module Reqif
  class DatatypeDefinitionInteger < Lutaml::Model::Serializable
    attribute :desc, :string
    attribute :identifier, :string
    attribute :last_change, :time
    attribute :long_name, :string
    attribute :max, :integer
    attribute :min, :integer
    attribute :alternative_id, AlternativeId

    xml do
      root "DATATYPE-DEFINITION-INTEGER"
      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_attribute "MAX", to: :max
      map_attribute "MIN", to: :min
      map_element "ALTERNATIVE-ID", to: :alternative_id
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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