Module: PayPal::SDK::REST::GetAPI
- Defined in:
- lib/paypal-sdk/rest/get_api.rb
Instance Method Summary collapse
-
#api ⇒ Object
Get API object === Example Payment.api payment.api.
-
#parent_api ⇒ Object
Parent API object.
Instance Method Details
#api ⇒ Object
9 10 11 |
# File 'lib/paypal-sdk/rest/get_api.rb', line 9 def api @api || parent_api end |
#parent_api ⇒ Object
Parent API object
14 15 16 |
# File 'lib/paypal-sdk/rest/get_api.rb', line 14 def parent_api superclass.respond_to?(:api) ? superclass.api : RequestDataType.api end |