Sha256: 14b3c67348c195ffa092b0c02a06ff5d9080886544413e0fb8dd76ff54284e8f

Contents?: true

Size: 914 Bytes

Versions: 1

Compression:

Stored size: 914 Bytes

Contents

require "lutaml/model"

module Reqif
  class AttributeDefinitionReal < Lutaml::Model::Serializable
    attribute :desc, :string
    attribute :identifier, :string
    attribute :is_editable, :boolean
    attribute :last_change, :time
    attribute :long_name, :string
    attribute :alternative_id, AlternativeId
    attribute :default_value, DefaultValue
    attribute :type, Type

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

      map_attribute "DESC", to: :desc
      map_attribute "IDENTIFIER", to: :identifier
      map_attribute "IS-EDITABLE", to: :is_editable
      map_attribute "LAST-CHANGE", to: :last_change
      map_attribute "LONG-NAME", to: :long_name
      map_element "ALTERNATIVE-ID", to: :alternative_id
      map_element "DEFAULT-VALUE", to: :default_value
      map_element "TYPE", to: :type
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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