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
25 26 27 28 29 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 25 def self.primary_key_column # Composite key: [:operationid, :name] # Return first component for compatibility :operationid end |
.table_name ⇒ Object
31 32 33 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 31 def self.table_name "t_operationparams" end |
Instance Method Details
#composite_key ⇒ Array
Returns composite primary key as array
37 38 39 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 37 def composite_key [operationid, name] end |
#constant? ⇒ Boolean
Check if parameter is constant
43 44 45 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 43 def constant? const == 1 end |
#inout? ⇒ Boolean
Check if parameter is input/output parameter
61 62 63 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 61 def inout? kind&.downcase == "inout" end |
#input? ⇒ Boolean
Check if parameter is input parameter
49 50 51 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 49 def input? kind&.downcase == "in" end |
#output? ⇒ Boolean
Check if parameter is output parameter
55 56 57 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 55 def output? kind&.downcase == "out" end |
#return? ⇒ Boolean
Check if parameter is return parameter
67 68 69 |
# File 'lib/lutaml/qea/models/ea_operation_param.rb', line 67 def return? kind&.downcase == "return" end |