Class: Adyen::API::RecurringService::DisableResponse
- Inherits:
-
Adyen::API::Response
- Object
- Adyen::API::Response
- Adyen::API::RecurringService::DisableResponse
- Defined in:
- lib/adyen/api.rb
Constant Summary collapse
- DISABLED_RESPONSES =
%w{ [detail-successfully-disabled] [all-details-successfully-disabled] }
Instance Attribute Summary
Attributes inherited from Adyen::API::Response
Instance Method Summary collapse
- #params ⇒ Object
- #success? ⇒ Boolean (also: #disabled?)
Methods inherited from Adyen::API::Response
#http_failure?, #initialize, response_attrs, #xml_querier
Constructor Details
This class inherits a constructor from Adyen::API::Response
Instance Method Details
#params ⇒ Object
392 393 394 |
# File 'lib/adyen/api.rb', line 392 def params @params ||= { :response => xml_querier.text('//recurring:disableResponse/recurring:result/recurring:response') } end |
#success? ⇒ Boolean Also known as: disabled?
386 387 388 |
# File 'lib/adyen/api.rb', line 386 def success? super && DISABLED_RESPONSES.include?(params[:response]) end |