class Vantiv::Certification::ResponseCache
Public Class Methods
new()
click to toggle source
# File lib/vantiv/certification/response_cache.rb, line 4 def initialize @responses = {} end
Public Instance Methods
access_value(values_tree)
click to toggle source
# File lib/vantiv/certification/response_cache.rb, line 12 def access_value(values_tree) cert_name = values_tree.shift response = @responses[cert_name] method_chain = values_tree.join('.') response.instance_eval(method_chain) end
push(cert_name, response)
click to toggle source
# File lib/vantiv/certification/response_cache.rb, line 8 def push(cert_name, response) @responses[cert_name] = response end