Class: StraddlePay::Resources::Base
- Inherits:
-
Object
- Object
- StraddlePay::Resources::Base
- Defined in:
- lib/straddle_pay/resources/base.rb
Overview
Base class for API resources. Provides header extraction for Straddle-specific headers (account scoping, request tracking, idempotency).
Direct Known Subclasses
AccountCapabilityRequests, AccountSettings, Bridge, BridgeLinks, Charges, CustomerReviews, Customers, Embed, EmbedAccounts, EmbedLinkedBankAccounts, EmbedOrganizations, EmbedRepresentatives, FundingEventPayments, FundingEvents, Paykeys, Payments, Payouts, Reports
Constant Summary collapse
- HEADER_KEYS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ straddle_account_id: "Straddle-Account-Id", request_id: "Request-Id", correlation_id: "Correlation-Id", idempotency_key: "Idempotency-Key" }.freeze
Instance Method Summary collapse
-
#initialize(client) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(client) ⇒ Base
Returns a new instance of Base.
18 19 20 |
# File 'lib/straddle_pay/resources/base.rb', line 18 def initialize(client) @client = client end |