Class: Lutaml::Uml::PrimitiveType

Inherits:
DataType show all
Defined in:
lib/lutaml/uml/primitive_type.rb

Instance Attribute Summary collapse

Attributes inherited from DataType

#associations, #attributes, #constraints, #data_types, #is_abstract, #members, #modifier, #nested_classifier, #operations, #type

Attributes inherited from Classifier

#generalization

Attributes inherited from TopElement

#comments, #definition, #href, #name, #namespace, #stereotype, #visibility, #xmi_id, #xmi_uuid

Instance Method Summary collapse

Methods inherited from DataType

#methods, #relationships

Methods included from HasMembers

#members=

Methods inherited from TopElement

#full_name

Methods included from HasAttributes

#update_attributes

Constructor Details

#initialize(attributes = {}) ⇒ PrimitiveType

Returns a new instance of PrimitiveType.



8
9
10
11
# File 'lib/lutaml/uml/primitive_type.rb', line 8

def initialize(attributes = {})
  super
  @keyword = "primitive"
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



6
7
8
# File 'lib/lutaml/uml/primitive_type.rb', line 6

def keyword
  @keyword
end