Class: Cybersourcery::CybersourceParamsNormalizer

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

Class Method Summary collapse

Class Method Details

.run(params) ⇒ Object



3
4
5
6
7
# File 'lib/cybersourcery/cybersource_params_normalizer.rb', line 3

def self.run(params)
  params.keys.each do |key|
    params[key[4..-1]] = params[key] if key =~ /^req_/
  end
end