Class: Lutaml::Uml::Enum

Inherits:
Classifier show all
Includes:
HasMembers
Defined in:
lib/lutaml/uml/enum.rb

Instance Attribute Summary collapse

Attributes inherited from Classifier

#generalization

Attributes inherited from TopElement

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

Instance Method Summary collapse

Methods included from HasMembers

#members=

Methods inherited from TopElement

#full_name

Methods included from HasAttributes

#update_attributes

Constructor Details

#initialize(attributes = {}) ⇒ Enum

Returns a new instance of Enum.



21
22
23
24
# File 'lib/lutaml/uml/enum.rb', line 21

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

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



14
15
16
# File 'lib/lutaml/uml/enum.rb', line 14

def attributes
  @attributes
end

#definitionObject (readonly)

Returns the value of attribute definition.



14
15
16
# File 'lib/lutaml/uml/enum.rb', line 14

def definition
  @definition
end

#keywordObject (readonly)

Returns the value of attribute keyword.



14
15
16
# File 'lib/lutaml/uml/enum.rb', line 14

def keyword
  @keyword
end

#membersObject (readonly)

Returns the value of attribute members.



14
15
16
# File 'lib/lutaml/uml/enum.rb', line 14

def members
  @members
end

#modifierObject (readonly)

Returns the value of attribute modifier.



14
15
16
# File 'lib/lutaml/uml/enum.rb', line 14

def modifier
  @modifier
end

#valuesObject

Returns the value of attribute values.



14
15
16
# File 'lib/lutaml/uml/enum.rb', line 14

def values
  @values
end

Instance Method Details

#methodsObject

TODO: reserved name, change



40
41
42
# File 'lib/lutaml/uml/enum.rb', line 40

def methods
  []
end