Module: Ebay::Config
- Defined in:
- lib/ebay/config.rb
Overview
Configures credentials for accessing the eBay APIs
Class Attribute Summary collapse
-
.app_id ⇒ String
Unique identifier for the application.
-
.cert_id ⇒ String
Certificate that authenticates the application when making API calls.
-
.dev_id ⇒ String
Unique identifier for the developer’s account.
Class Attribute Details
.app_id ⇒ String
Note:
This attribute defaults to the ‘EBAY_APP_ID` environment variable.
Returns unique identifier for the application.
17 18 19 |
# File 'lib/ebay/config.rb', line 17 def app_id @app_id ||= ENV['EBAY_APP_ID'] end |
.cert_id ⇒ String
Note:
This attribute defaults to the ‘EBAY_CERT_ID` environment variable.
Returns certificate that authenticates the application when making API calls.
33 34 35 |
# File 'lib/ebay/config.rb', line 33 def cert_id @cert_id ||= ENV['EBAY_CERT_ID'] end |
.dev_id ⇒ String
Note:
This attribute defaults to the ‘EBAY_DEV_ID` environment variable.
Returns unique identifier for the developer’s account.
24 25 26 |
# File 'lib/ebay/config.rb', line 24 def dev_id @dev_id ||= ENV['EBAY_DEV_ID'] end |