Class: AlipayEscrow::Base
- Inherits:
-
Object
- Object
- AlipayEscrow::Base
- Defined in:
- lib/alipay_escrow/base.rb
Constant Summary collapse
- GATEWAY =
'https://mapi.alipay.com/gateway.do?'
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#options ⇒ Object
Returns the value of attribute options.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#partner_id ⇒ Object
readonly
Returns the value of attribute partner_id.
Instance Method Summary collapse
-
#initialize(params, key, partner_id) ⇒ Base
constructor
A new instance of Base.
- #verify ⇒ Object
Constructor Details
#initialize(params, key, partner_id) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 13 |
# File 'lib/alipay_escrow/base.rb', line 8 def initialize(params, key, partner_id) @params = params @key = key @partner_id = partner_id @options = {} end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/alipay_escrow/base.rb', line 3 def key @key end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/alipay_escrow/base.rb', line 4 def @options end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/alipay_escrow/base.rb', line 3 def params @params end |
#partner_id ⇒ Object (readonly)
Returns the value of attribute partner_id.
3 4 5 |
# File 'lib/alipay_escrow/base.rb', line 3 def partner_id @partner_id end |
Instance Method Details
#verify ⇒ Object
15 16 17 |
# File 'lib/alipay_escrow/base.rb', line 15 def verify signature_verify && notification_verify end |