Class: Adyen::REST::ModifyPayment::Response
- Defined in:
- lib/adyen/rest/modify_payment.rb
Instance Attribute Summary collapse
-
#expected_response ⇒ Object
readonly
Returns the value of attribute expected_response.
Attributes inherited from Response
#attributes, #http_response, #prefix
Instance Method Summary collapse
-
#initialize(http_response, options = {}) ⇒ Response
constructor
A new instance of Response.
- #received? ⇒ Boolean
Methods inherited from Response
#[], #has_attribute?, #psp_reference
Constructor Details
#initialize(http_response, options = {}) ⇒ Response
Returns a new instance of Response.
18 19 20 21 |
# File 'lib/adyen/rest/modify_payment.rb', line 18 def initialize(http_response, = {}) super @expected_response = [:expects] end |
Instance Attribute Details
#expected_response ⇒ Object (readonly)
Returns the value of attribute expected_response.
16 17 18 |
# File 'lib/adyen/rest/modify_payment.rb', line 16 def expected_response @expected_response end |
Instance Method Details
#received? ⇒ Boolean
23 24 25 |
# File 'lib/adyen/rest/modify_payment.rb', line 23 def received? self[:response] == expected_response end |