Class: Kameleoon::Types::Variable
- Inherits:
-
Object
- Object
- Kameleoon::Types::Variable
- Defined in:
- lib/kameleoon/types/variable.rb
Overview
Variable
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, type, value) ⇒ Variable
constructor
A new instance of Variable.
- #to_s ⇒ Object
Constructor Details
#initialize(key, type, value) ⇒ Variable
Returns a new instance of Variable.
14 15 16 17 18 |
# File 'lib/kameleoon/types/variable.rb', line 14 def initialize(key, type, value) @key = key @type = type @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 9 10 |
# File 'lib/kameleoon/types/variable.rb', line 8 def key @key end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/kameleoon/types/variable.rb', line 8 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/kameleoon/types/variable.rb', line 8 def value @value end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/kameleoon/types/variable.rb', line 10 def to_s "Variable{key:'#{@key}',type:'#{@type}',value:#{@value}}" end |