Class: WechatPayment::SuccessResult

Inherits:
ServiceResult show all
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

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, message_kind: message_kind, message_type: message_type)
end