Module: PartnerApi::Endpoints::Initializer
- Included in:
- AnzApi::Endpoints::FetchJwk, BnzApi::Endpoints::FetchIdToken, BnzApi::Endpoints::FetchJwk, FabApi::Endpoints::DeliverEmail, FabApi::Endpoints::DeliverSms, FabApi::Endpoints::ExchangeToken, FabApi::Endpoints::InvalidateToken, FabApi::Endpoints::RefreshToken, GeminiApi::Endpoints::CreateAddressRequest, GeminiApi::Endpoints::GetAvailableBalances, GeminiApi::Endpoints::ViewApprovedAddresses, GeminiApi::Endpoints::ViewTransfers, GeminiApi::Endpoints::WithdrawCryptoFund, VmaApi::Endpoints::AccessToken, VmaApi::Endpoints::ClientCredentials, VmaApi::Endpoints::RefreshToken, VmaApi::Endpoints::RevokeToken, WestpacApi::Endpoints::FetchJwk, WestpacApi::Endpoints::FetchUser
- Defined in:
- lib/partner_api/endpoints/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(klass) ⇒ Object
129 130 131 132 133 134 135 |
# File 'lib/partner_api/endpoints/base.rb', line 129 def self.prepended(klass) klass.class_eval do def self.call(config, **params) new(config, **params).call end end end |
Instance Method Details
#initialize(config, **params) ⇒ Object
137 138 139 140 141 142 143 144 145 |
# File 'lib/partner_api/endpoints/base.rb', line 137 def initialize(config, **params) @config = config if params.empty? super() else super(**params) end end |