Class: Lutaml::Qea::Models::EaDiagramType
- Inherits:
-
BaseModel
- Object
- Model::Serializable
- BaseModel
- Lutaml::Qea::Models::EaDiagramType
- Defined in:
- lib/lutaml/qea/models/ea_diagram_type.rb
Overview
Represents a diagram type definition from t_diagramtypes table
This table provides reference data for diagram types available in EA. These define the types of UML diagrams that can be created.
Class Method Summary collapse
-
.primary_key_column ⇒ Object
Primary key is Diagram_Type (text).
- .table_name ⇒ Object
Instance Method Summary collapse
-
#activity_diagram? ⇒ Boolean
Check if this is an activity diagram.
-
#class_diagram? ⇒ Boolean
Check if this is a class diagram.
-
#type_name ⇒ String
Friendly type name.
-
#use_case_diagram? ⇒ Boolean
Check if this is a use case diagram.
Methods inherited from BaseModel
Class Method Details
.primary_key_column ⇒ Object
Primary key is Diagram_Type (text)
26 27 28 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 26 def self.primary_key_column "Diagram_Type" end |
.table_name ⇒ Object
21 22 23 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 21 def self.table_name "t_diagramtypes" end |
Instance Method Details
#activity_diagram? ⇒ Boolean
Check if this is an activity diagram
44 45 46 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 44 def activity_diagram? diagram_type == "Activity" end |
#class_diagram? ⇒ Boolean
Check if this is a class diagram
38 39 40 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 38 def class_diagram? diagram_type == "Logical" end |
#type_name ⇒ String
Friendly type name
32 33 34 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 32 def type_name diagram_type end |
#use_case_diagram? ⇒ Boolean
Check if this is a use case diagram
50 51 52 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 50 def use_case_diagram? diagram_type == "UseCase" end |