Class: EsiAttributeLanguage::VariableLookup

Inherits:
Object
  • Object
show all
Defined in:
lib/esi_attribute_language.rb

Instance Method Summary collapse

Constructor Details

#initialize(variable_name) ⇒ VariableLookup

Returns a new instance of VariableLookup.



6
7
8
# File 'lib/esi_attribute_language.rb', line 6

def initialize(variable_name)
  @variable_name = variable_name.to_sym
end

Instance Method Details

#execute(context) ⇒ Object



10
11
12
# File 'lib/esi_attribute_language.rb', line 10

def execute(context)
  context[@variable_name]
end