Class: SantanderChile::ApiClient::Template::ERBContext
- Inherits:
-
Object
- Object
- SantanderChile::ApiClient::Template::ERBContext
- Defined in:
- lib/santander_chile/api_client/templates/templates.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(hash) ⇒ ERBContext
constructor
A new instance of ERBContext.
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_binding ⇒ Object
11 12 13 |
# File 'lib/santander_chile/api_client/templates/templates.rb', line 11 def get_binding binding end |