Class: Payments::Client::Operation
- Inherits:
-
Object
- Object
- Payments::Client::Operation
- Defined in:
- lib/payments/client/operations/http.rb
Direct Known Subclasses
ChangeOrderExtraData, CreateFinancialContext, CreateMerchant, GetAccountDonationTransactionDetailReport, GetAccountStatement, GetDonationTransactionDetailReport, GetFinancialContext, GetMerchant, GetMerchantFinancialReports, GetPricingSchedule, GetReceiptNumber, PlaceOrder, RequestOrderVoid, RequestReceiptNumber, UpdateMerchant, UpdateMerchantsInFinancialContext
Instance Method Summary collapse
- #call(other_options = {}) ⇒ Object
-
#initialize(gateway) ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
#initialize(gateway) ⇒ Operation
Returns a new instance of Operation.
4 5 6 |
# File 'lib/payments/client/operations/http.rb', line 4 def initialize(gateway) @gateway = gateway end |
Instance Method Details
#call(other_options = {}) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/payments/client/operations/http.rb', line 8 def call( = {}) = .merge() @gateway.public_send( method, actual_path(), , ) end |