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