Class: SpotFeel::Dmn::Output
- Inherits:
-
Object
- Object
- SpotFeel::Dmn::Output
- Defined in:
- lib/spot_feel/dmn/output.rb
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.
Class Method Summary collapse
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(id:, label:, name:, type_ref:) ⇒ Output
constructor
A new instance of Output.
Constructor Details
#initialize(id:, label:, name:, type_ref:) ⇒ Output
Returns a new instance of Output.
12 13 14 15 16 17 |
# File 'lib/spot_feel/dmn/output.rb', line 12 def initialize(id:, label:, name:, type_ref:) @id = id @label = label @name = name @type_ref = type_ref end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/spot_feel/dmn/output.rb', line 6 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
6 7 8 |
# File 'lib/spot_feel/dmn/output.rb', line 6 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/spot_feel/dmn/output.rb', line 6 def name @name end |
#type_ref ⇒ Object (readonly)
Returns the value of attribute type_ref.
6 7 8 |
# File 'lib/spot_feel/dmn/output.rb', line 6 def type_ref @type_ref end |
Class Method Details
Instance Method Details
#as_json ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/spot_feel/dmn/output.rb', line 19 def as_json { id: id, label: label, name: name, type_ref: type_ref, } end |