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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key, type, value) ⇒ Variable
constructor
private
A new instance of Variable.
- #to_s ⇒ Object
Constructor Details
#initialize(key, type, value) ⇒ Variable
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Variable.
17 18 19 20 21 |
# File 'lib/kameleoon/types/variable.rb', line 17 def initialize(key, type, value) @key = key @type = type @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
10 11 12 |
# File 'lib/kameleoon/types/variable.rb', line 10 def key @key end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
10 11 12 |
# File 'lib/kameleoon/types/variable.rb', line 10 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'lib/kameleoon/types/variable.rb', line 10 def value @value end |
Class Method Details
._build_from_internal(source_variable) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/kameleoon/types/variable.rb', line 24 def self._build_from_internal(source_variable) Variable.new(source_variable.key, source_variable.type, source_variable.get_value) end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/kameleoon/types/variable.rb', line 12 def to_s "Variable{key:'#{@key}',type:'#{@type}',value:#{@value}}" end |