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)
28 29 30 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 28 def self.primary_key_column "Diagram_Type" end |
.table_name ⇒ Object
23 24 25 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 23 def self.table_name "t_diagramtypes" end |
Instance Method Details
#activity_diagram? ⇒ Boolean
Check if this is an activity diagram
46 47 48 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 46 def activity_diagram? diagram_type == "Activity" end |
#class_diagram? ⇒ Boolean
Check if this is a class diagram
40 41 42 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 40 def class_diagram? diagram_type == "Logical" end |
#type_name ⇒ String
Friendly type name
34 35 36 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 34 def type_name diagram_type end |
#use_case_diagram? ⇒ Boolean
Check if this is a use case diagram
52 53 54 |
# File 'lib/lutaml/qea/models/ea_diagram_type.rb', line 52 def use_case_diagram? diagram_type == "UseCase" end |