Class: WechatPayment::SuccessResult
- Inherits:
-
ServiceResult
- Object
- ServiceResult
- WechatPayment::SuccessResult
- Defined in:
- lib/wechat_payment/success_result.rb
Instance Attribute Summary
Attributes inherited from ServiceResult
#data, #error, #message, #message_kind, #message_type, #success
Instance Method Summary collapse
-
#initialize(data: {}, error: nil, message: nil, message_kind: nil, message_type: nil) ⇒ SuccessResult
constructor
A new instance of SuccessResult.
Methods inherited from ServiceResult
#as_json, #failure?, #message_kind_prefix, #on_failure, #on_success
Constructor Details
#initialize(data: {}, error: nil, message: nil, message_kind: nil, message_type: nil) ⇒ SuccessResult
Returns a new instance of SuccessResult.
3 4 5 |
# File 'lib/wechat_payment/success_result.rb', line 3 def initialize(data: {}, error: nil, message: nil, message_kind: nil, message_type: nil) super(success: true, data: data, error: error, message: , message_kind: , message_type: ) end |