Class: Allinpay::Client
- Inherits:
-
Object
- Object
- Allinpay::Client
- Defined in:
- lib/allinpay/client.rb
Class Attribute Summary collapse
-
.private_password ⇒ Object
Returns the value of attribute private_password.
-
.private_path ⇒ Object
Returns the value of attribute private_path.
-
.public_path ⇒ Object
Returns the value of attribute public_path.
Instance Attribute Summary collapse
-
#conn ⇒ Object
Returns the value of attribute conn.
-
#merchant ⇒ Object
Returns the value of attribute merchant.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
初始化通联支付.
Methods included from Query
Methods included from Payment
Methods included from Account
Constructor Details
#initialize(options) ⇒ Client
初始化通联支付
30 31 32 33 34 35 36 |
# File 'lib/allinpay/client.rb', line 30 def initialize() @merchant = [:merchant] @username = [:username] @password = [:password] env = [:env] || 'development' @conn = Allinpay::Service.connection(env, ) end |
Class Attribute Details
.private_password ⇒ Object
Returns the value of attribute private_password.
16 17 18 |
# File 'lib/allinpay/client.rb', line 16 def private_password @private_password end |
.private_path ⇒ Object
Returns the value of attribute private_path.
16 17 18 |
# File 'lib/allinpay/client.rb', line 16 def private_path @private_path end |
.public_path ⇒ Object
Returns the value of attribute public_path.
16 17 18 |
# File 'lib/allinpay/client.rb', line 16 def public_path @public_path end |
Instance Attribute Details
#conn ⇒ Object
Returns the value of attribute conn.
13 14 15 |
# File 'lib/allinpay/client.rb', line 13 def conn @conn end |
#merchant ⇒ Object
Returns the value of attribute merchant.
13 14 15 |
# File 'lib/allinpay/client.rb', line 13 def merchant @merchant end |
#password ⇒ Object
Returns the value of attribute password.
13 14 15 |
# File 'lib/allinpay/client.rb', line 13 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
13 14 15 |
# File 'lib/allinpay/client.rb', line 13 def username @username end |