Exception: ShopeePayService::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ShopeePayService::Error
- Defined in:
- app/services/shopee_pay_service/base.rb
Instance Attribute Summary collapse
-
#debug_msg ⇒ Object
Returns the value of attribute debug_msg.
-
#errcode ⇒ Object
Returns the value of attribute errcode.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
Instance Method Summary collapse
-
#initialize(body) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(body) ⇒ Error
Returns a new instance of Error.
14 15 16 17 18 19 |
# File 'app/services/shopee_pay_service/base.rb', line 14 def initialize(body) super @request_id = body['request_id'] @errcode = body['errcode'] @debug_msg = body['debug_msg'] end |
Instance Attribute Details
#debug_msg ⇒ Object
Returns the value of attribute debug_msg.
12 13 14 |
# File 'app/services/shopee_pay_service/base.rb', line 12 def debug_msg @debug_msg end |
#errcode ⇒ Object
Returns the value of attribute errcode.
12 13 14 |
# File 'app/services/shopee_pay_service/base.rb', line 12 def errcode @errcode end |
#request_id ⇒ Object
Returns the value of attribute request_id.
12 13 14 |
# File 'app/services/shopee_pay_service/base.rb', line 12 def request_id @request_id end |