Class: SecureTrading::XpayClient
- Inherits:
-
Object
- Object
- SecureTrading::XpayClient
- Defined in:
- lib/secure_trading/xpay_client.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(host, port = 5000) ⇒ XpayClient
constructor
A new instance of XpayClient.
- #to_s ⇒ Object
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
#host ⇒ Object (readonly)
Returns the value of attribute host.
4 5 6 |
# File 'lib/secure_trading/xpay_client.rb', line 4 def host @host end |
#port ⇒ Object (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_s ⇒ Object
10 11 12 |
# File 'lib/secure_trading/xpay_client.rb', line 10 def to_s "<XPayClient::#{host}:#{port}>" end |