Class: DecisionAgent::Dmn::Output
- Inherits:
-
Object
- Object
- DecisionAgent::Dmn::Output
- Defined in:
- lib/decision_agent/dmn/model.rb
Overview
Output clause (result column) in decision table
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type_ref ⇒ Object
readonly
Returns the value of attribute type_ref.
Instance Method Summary collapse
- #freeze ⇒ Object
-
#initialize(id:, label:, name: nil, type_ref: "string") ⇒ Output
constructor
A new instance of Output.
Constructor Details
#initialize(id:, label:, name: nil, type_ref: "string") ⇒ Output
Returns a new instance of Output.
149 150 151 152 153 154 |
# File 'lib/decision_agent/dmn/model.rb', line 149 def initialize(id:, label:, name: nil, type_ref: "string") @id = id.to_s @label = label.to_s @name = (name || label).to_s @type_ref = type_ref.to_s end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
147 148 149 |
# File 'lib/decision_agent/dmn/model.rb', line 147 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
147 148 149 |
# File 'lib/decision_agent/dmn/model.rb', line 147 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
147 148 149 |
# File 'lib/decision_agent/dmn/model.rb', line 147 def name @name end |
#type_ref ⇒ Object (readonly)
Returns the value of attribute type_ref.
147 148 149 |
# File 'lib/decision_agent/dmn/model.rb', line 147 def type_ref @type_ref end |
Instance Method Details
#freeze ⇒ Object
156 157 158 159 160 161 162 |
# File 'lib/decision_agent/dmn/model.rb', line 156 def freeze @id.freeze @label.freeze @name.freeze @type_ref.freeze super end |