Class: Lutaml::Qea::Models::EaStatusType
- Defined in:
- lib/lutaml/qea/models/ea_status_type.rb
Overview
Represents a status type definition from t_statustypes table
This table provides reference data for status values that can be assigned to UML elements (Approved, Implemented, Mandatory, etc.).
Class Method Summary collapse
-
.primary_key_column ⇒ Object
Primary key is Status (text).
- .table_name ⇒ Object
Instance Method Summary collapse
-
#approved? ⇒ Boolean
Check if this is the Approved status.
-
#implemented? ⇒ Boolean
Check if this is the Implemented status.
-
#mandatory? ⇒ Boolean
Check if this is the Mandatory status.
-
#name ⇒ String
Friendly name for status.
-
#proposed? ⇒ Boolean
Check if this is the Proposed status.
-
#validated? ⇒ Boolean
Check if this is the Validated status.
Methods inherited from BaseModel
Class Method Details
.primary_key_column ⇒ Object
Primary key is Status (text)
26 27 28 |
# File 'lib/lutaml/qea/models/ea_status_type.rb', line 26 def self.primary_key_column "Status" end |
.table_name ⇒ Object
21 22 23 |
# File 'lib/lutaml/qea/models/ea_status_type.rb', line 21 def self.table_name "t_statustypes" end |
Instance Method Details
#approved? ⇒ Boolean
Check if this is the Approved status
38 39 40 |
# File 'lib/lutaml/qea/models/ea_status_type.rb', line 38 def approved? status == "Approved" end |
#implemented? ⇒ Boolean
Check if this is the Implemented status
44 45 46 |
# File 'lib/lutaml/qea/models/ea_status_type.rb', line 44 def implemented? status == "Implemented" end |
#mandatory? ⇒ Boolean
Check if this is the Mandatory status
50 51 52 |
# File 'lib/lutaml/qea/models/ea_status_type.rb', line 50 def mandatory? status == "Mandatory" end |
#name ⇒ String
Friendly name for status
32 33 34 |
# File 'lib/lutaml/qea/models/ea_status_type.rb', line 32 def name status end |
#proposed? ⇒ Boolean
Check if this is the Proposed status
56 57 58 |
# File 'lib/lutaml/qea/models/ea_status_type.rb', line 56 def proposed? status == "Proposed" end |
#validated? ⇒ Boolean
Check if this is the Validated status
62 63 64 |
# File 'lib/lutaml/qea/models/ea_status_type.rb', line 62 def validated? status == "Validated" end |