class Adyen::REST::ModifyPayment::Response

Attributes

expected_response[R]

Public Class Methods

new(http_response, options = {}) click to toggle source
Calls superclass method Adyen::REST::Response::new
   # File lib/adyen/rest/modify_payment.rb
18 def initialize(http_response, options = {})
19   super
20   @expected_response = options[:expects]
21 end

Public Instance Methods

received?() click to toggle source
   # File lib/adyen/rest/modify_payment.rb
23 def received?
24   self[:response] == expected_response
25 end