Class: SecureTrading::XpayClient

Inherits:
Object
  • Object
show all
Defined in:
lib/secure_trading/xpay_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port = 5000) ⇒ XpayClient

Returns a new instance of XpayClient.



6
7
8
# File 'lib/secure_trading/xpay_client.rb', line 6

def initialize(host, port = 5000)
  @host, @port = host, port
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



4
5
6
# File 'lib/secure_trading/xpay_client.rb', line 4

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



4
5
6
# File 'lib/secure_trading/xpay_client.rb', line 4

def port
  @port
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/secure_trading/xpay_client.rb', line 10

def to_s
  "<XPayClient::#{host}:#{port}>"
end