Module: PayPal::SDK::Core::OpenIDConnect::GetAPI
- Defined in:
- lib/paypal-sdk/core/openid_connect/get_api.rb
Instance Method Summary collapse
-
#api ⇒ Object
Get API object === Example Payment.api payment.api.
- #client_id ⇒ Object
- #client_secret ⇒ Object
-
#parent_api ⇒ Object
Parent API object.
Instance Method Details
#api ⇒ Object
Get API object
Example
Payment.api
payment.api
9 10 11 |
# File 'lib/paypal-sdk/core/openid_connect/get_api.rb', line 9 def api @api || parent_api end |
#client_id ⇒ Object
18 19 20 |
# File 'lib/paypal-sdk/core/openid_connect/get_api.rb', line 18 def client_id api.config.openid_client_id || api.config.client_id end |
#client_secret ⇒ Object
22 23 24 |
# File 'lib/paypal-sdk/core/openid_connect/get_api.rb', line 22 def client_secret api.config.openid_client_secret || api.config.client_secret end |
#parent_api ⇒ Object
Parent API object
14 15 16 |
# File 'lib/paypal-sdk/core/openid_connect/get_api.rb', line 14 def parent_api superclass.respond_to?(:api) ? superclass.api : RequestDataType.api end |