Class: SantanderChile::ApiClient::Template::ERBContext

Inherits:
Object
  • Object
show all
Defined in:
lib/santander_chile/api_client/templates/templates.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ERBContext

Returns a new instance of ERBContext.



5
6
7
8
9
# File 'lib/santander_chile/api_client/templates/templates.rb', line 5

def initialize(hash)
  hash.each_pair do |key, value|
    instance_variable_set("@" + key.to_s, value)
  end
end

Instance Method Details

#get_bindingObject



11
12
13
# File 'lib/santander_chile/api_client/templates/templates.rb', line 11

def get_binding
  binding
end