Class: Lutaml::Qea::Models::EaConnectorType
- Inherits:
-
BaseModel
- Object
- Model::Serializable
- BaseModel
- Lutaml::Qea::Models::EaConnectorType
- Defined in:
- lib/lutaml/qea/models/ea_connector_type.rb
Overview
Represents a connector type definition from t_connectortypes table
This table provides reference data for connector/association types. These define the available relationship types in UML models.
Class Method Summary collapse
-
.primary_key_column ⇒ Object
Primary key is Connector_Type (text).
- .table_name ⇒ Object
Instance Method Summary collapse
-
#aggregation? ⇒ Boolean
Check if this is an aggregation type.
-
#association? ⇒ Boolean
Check if this is an association type.
-
#dependency? ⇒ Boolean
Check if this is a dependency type.
-
#generalization? ⇒ Boolean
Check if this is a generalization type.
-
#name ⇒ String
Friendly name for connector type.
Methods inherited from BaseModel
Class Method Details
.primary_key_column ⇒ Object
Primary key is Connector_Type (text)
24 25 26 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 24 def self.primary_key_column "Connector_Type" end |
.table_name ⇒ Object
19 20 21 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 19 def self.table_name "t_connectortypes" end |
Instance Method Details
#aggregation? ⇒ Boolean
Check if this is an aggregation type
48 49 50 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 48 def aggregation? connector_type == "Aggregation" end |
#association? ⇒ Boolean
Check if this is an association type
36 37 38 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 36 def association? connector_type == "Association" end |
#dependency? ⇒ Boolean
Check if this is a dependency type
54 55 56 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 54 def dependency? connector_type == "Dependency" end |
#generalization? ⇒ Boolean
Check if this is a generalization type
42 43 44 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 42 def generalization? connector_type == "Generalization" end |
#name ⇒ String
Friendly name for connector type
30 31 32 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 30 def name connector_type end |