Class: Lutaml::Qea::Models::EaOperationParam
- Inherits:
-
BaseModel
- Object
- Model::Serializable
- BaseModel
- Lutaml::Qea::Models::EaOperationParam
- Defined in:
- lib/lutaml/qea/models/ea_operation_param.rb
Overview
Represents an operation parameter from the t_operationparams table This represents method/operation parameters Note: Has composite primary key (OperationID + Name)
Class Method Summary collapse
Instance Method Summary collapse
-
#composite_key ⇒ Array
Returns composite primary key as array.
-
#constant? ⇒ Boolean
Check if parameter is constant.
-
#inout? ⇒ Boolean
Check if parameter is input/output parameter.
-
#input? ⇒ Boolean
Check if parameter is input parameter.
-
#output? ⇒ Boolean
Check if parameter is output parameter.
-
#return? ⇒ Boolean
Check if parameter is return parameter.
Methods inherited from BaseModel
Class Method Details
.primary_key_column ⇒ Object
23 24 25 26 27 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 23 def self.primary_key_column # Composite key: [:operationid, :name] # Return first component for compatibility :operationid end |
.table_name ⇒ Object
29 30 31 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 29 def self.table_name "t_operationparams" end |
Instance Method Details
#composite_key ⇒ Array
Returns composite primary key as array
35 36 37 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 35 def composite_key [operationid, name] end |
#constant? ⇒ Boolean
Check if parameter is constant
41 42 43 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 41 def constant? const == 1 end |
#inout? ⇒ Boolean
Check if parameter is input/output parameter
59 60 61 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 59 def inout? kind&.downcase == "inout" end |
#input? ⇒ Boolean
Check if parameter is input parameter
47 48 49 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 47 def input? kind&.downcase == "in" end |
#output? ⇒ Boolean
Check if parameter is output parameter
53 54 55 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 53 def output? kind&.downcase == "out" end |
#return? ⇒ Boolean
Check if parameter is return parameter
65 66 67 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 65 def return? kind&.downcase == "return" end |