Module: PaypalAPI::Client::EnvironmentMethods
- Included in:
- PaypalAPI::Client
- Defined in:
- lib/paypal-api/client/environment_methods.rb
Overview
Client environment specific methods
Instance Method Summary collapse
-
#api_url ⇒ String
Base API URL.
-
#live? ⇒ Boolean
Checks if PayPal LIVE environment enabled.
-
#sandbox? ⇒ Boolean
Checks if PayPal SANDBOX environment enabled.
-
#web_url ⇒ String
Base WEB URL.
Instance Method Details
#api_url ⇒ String
Base API URL
23 24 25 |
# File 'lib/paypal-api/client/environment_methods.rb', line 23 def api_url env.api_url end |
#live? ⇒ Boolean
Checks if PayPal LIVE environment enabled
11 12 13 |
# File 'lib/paypal-api/client/environment_methods.rb', line 11 def live? env.live? end |
#sandbox? ⇒ Boolean
Checks if PayPal SANDBOX environment enabled
17 18 19 |
# File 'lib/paypal-api/client/environment_methods.rb', line 17 def sandbox? env.sandbox? end |
#web_url ⇒ String
Base WEB URL
29 30 31 |
# File 'lib/paypal-api/client/environment_methods.rb', line 29 def web_url env.web_url end |