Class: AdaptivePayments::AbstractResponse
- Includes:
- FaultMessage
- Defined in:
- lib/pp-adaptive/abstract_response.rb
Overview
AbstractResponse provides a JsonModel with the default behaviour for all responses
The ResponseEnvelope is already included by default. It does not need to be redeclared in descendants.
All responses have FaultMessage behaviour mixed in, so will behave as a FaultMessage if the API returns one.
Direct Known Subclasses
CancelPreapprovalResponse, ConvertCurrencyResponse, ExecutePaymentResponse, GetPaymentOptionsResponse, PayResponse, PaymentDetailsResponse, PreapprovalDetailsResponse, PreapprovalResponse, RefundResponse, SetPaymentOptionsResponse
Class Method Summary collapse
-
.operation(name = nil) ⇒ Symbol
Set or get the API operation.
Methods included from FaultMessage
Methods included from Aliases
Methods included from JsonModel::Parsing
Methods included from JsonModel::Writing
Class Method Details
.operation(name = nil) ⇒ Symbol
Set or get the API operation
This method should be called in descendants, but is not currently used.
35 36 37 38 |
# File 'lib/pp-adaptive/abstract_response.rb', line 35 def operation(name = nil) @operation = name unless name.nil? @operation end |