Class: CnpOnline::SubmerchantDebitListener

Inherits:
DefaultCnpListener show all
Defined in:
lib/CnpListeners.rb

Instance Method Summary collapse

Methods inherited from DefaultCnpListener

#initialize

Constructor Details

This class inherits a constructor from CnpOnline::DefaultCnpListener

Instance Method Details

#apply(duck) ⇒ Object



202
203
204
205
206
# File 'lib/CnpListeners.rb', line 202

def apply(duck)
  if(duck["type"] == "submerchantDebitResponse") then
    @action.call(duck)
  end
end