class Workarea::Klarna::BogusGateway
Public Instance Methods
method_missing(method_name, *args)
click to toggle source
Calls superclass method
# File lib/workarea/klarna/bogus_gateway.rb, line 8 def method_missing(method_name, *args) return super unless Gateway.new.respond_to?(method_name) OpenStruct.new( success?: false, message: 'This is a bogus gateway', params: {} ) end
respond_to_missing?(method_name, include_private = false)
click to toggle source
# File lib/workarea/klarna/bogus_gateway.rb, line 4 def respond_to_missing?(method_name, include_private = false) Gateway.new.respond_to?(method_name) end