Class: BreadMachine::SecureTrading::XPaySocket
- Inherits:
-
Object
- Object
- BreadMachine::SecureTrading::XPaySocket
- Defined in:
- lib/breadmachine/secure_trading/xpay_socket.rb
Overview
This currently just delegates to TCPSocket, but this is where we will inject Fake Socket behaviour to disconnect from having the XPay client running during testing
Class Method Summary collapse
Class Method Details
.open(*args, &block) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/breadmachine/secure_trading/xpay_socket.rb', line 12 def open(*args, &block) begin return TCPSocket.open(*args, &block) rescue Errno::ECONNREFUSED raise BreadMachine::GatewayConnectionError end end |