class Bancard::SingleBuyRollbackResponse
Attributes
body[R]
Public Class Methods
new(response)
click to toggle source
# File lib/bancard/single_buy_rollback_response.rb, line 8 def initialize(response) @original_response = response @body = JSON.parse(response.body) end
Public Instance Methods
message()
click to toggle source
# File lib/bancard/single_buy_rollback_response.rb, line 25 def message end
params()
click to toggle source
# File lib/bancard/single_buy_rollback_response.rb, line 17 def params body end
process_id()
click to toggle source
# File lib/bancard/single_buy_rollback_response.rb, line 21 def process_id body['process_id'] end
success?()
click to toggle source
# File lib/bancard/single_buy_rollback_response.rb, line 13 def success? body['status'] == 'success' end