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)
26 27 28 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 26 def self.primary_key_column "Connector_Type" end |
.table_name ⇒ Object
21 22 23 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 21 def self.table_name "t_connectortypes" end |
Instance Method Details
#aggregation? ⇒ Boolean
Check if this is an aggregation type
50 51 52 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 50 def aggregation? connector_type == "Aggregation" end |
#association? ⇒ Boolean
Check if this is an association type
38 39 40 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 38 def association? connector_type == "Association" end |
#dependency? ⇒ Boolean
Check if this is a dependency type
56 57 58 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 56 def dependency? connector_type == "Dependency" end |
#generalization? ⇒ Boolean
Check if this is a generalization type
44 45 46 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 44 def generalization? connector_type == "Generalization" end |
#name ⇒ String
Friendly name for connector type
32 33 34 |
# File 'lib/lutaml/qea/models/ea_connector_type.rb', line 32 def name connector_type end |