Class: Lutaml::Uml::Enum
- Inherits:
-
Classifier
- Object
- TopElement
- Classifier
- Lutaml::Uml::Enum
- Includes:
- HasMembers
- Defined in:
- lib/lutaml/uml/enum.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#members ⇒ Object
readonly
Returns the value of attribute members.
-
#modifier ⇒ Object
readonly
Returns the value of attribute modifier.
-
#values ⇒ Object
Returns the value of attribute values.
Attributes inherited from Classifier
Attributes inherited from TopElement
#comments, #href, #name, #namespace, #stereotype, #visibility, #xmi_id, #xmi_uuid
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Enum
constructor
A new instance of Enum.
-
#methods ⇒ Object
TODO: reserved name, change.
Methods included from HasMembers
Methods inherited from TopElement
Methods included from HasAttributes
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
#attributes ⇒ Object
Returns the value of attribute attributes.
14 15 16 |
# File 'lib/lutaml/uml/enum.rb', line 14 def attributes @attributes end |
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
14 15 16 |
# File 'lib/lutaml/uml/enum.rb', line 14 def definition @definition end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
14 15 16 |
# File 'lib/lutaml/uml/enum.rb', line 14 def keyword @keyword end |
#members ⇒ Object (readonly)
Returns the value of attribute members.
14 15 16 |
# File 'lib/lutaml/uml/enum.rb', line 14 def members @members end |
#modifier ⇒ Object (readonly)
Returns the value of attribute modifier.
14 15 16 |
# File 'lib/lutaml/uml/enum.rb', line 14 def modifier @modifier end |
#values ⇒ Object
Returns the value of attribute values.
14 15 16 |
# File 'lib/lutaml/uml/enum.rb', line 14 def values @values end |
Instance Method Details
#methods ⇒ Object
TODO: reserved name, change
40 41 42 |
# File 'lib/lutaml/uml/enum.rb', line 40 def methods [] end |