Class: Kameleoon::Types::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/types/variable.rb

Overview

Variable

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



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

#keyObject (readonly)

Returns the value of attribute key.



7
8
9
# File 'lib/kameleoon/types/variable.rb', line 7

def key
  @key
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/kameleoon/types/variable.rb', line 7

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/kameleoon/types/variable.rb', line 7

def value
  @value
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/kameleoon/types/variable.rb', line 9

def to_s
  "Variable{key:'#{@key}',type:'#{@type}',value:#{@value}}"
end