Class: DecisionAgent::Dmn::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/decision_agent/dmn/model.rb

Overview

Output clause (result column) in decision table

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



147
148
149
# File 'lib/decision_agent/dmn/model.rb', line 147

def id
  @id
end

#labelObject (readonly)

Returns the value of attribute label.



147
148
149
# File 'lib/decision_agent/dmn/model.rb', line 147

def label
  @label
end

#nameObject (readonly)

Returns the value of attribute name.



147
148
149
# File 'lib/decision_agent/dmn/model.rb', line 147

def name
  @name
end

#type_refObject (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

#freezeObject



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